summary refs log tree commit diff
path: root/tests/ui/parser/encode-symbol-ice-12920.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/encode-symbol-ice-12920.rs')
-rw-r--r--tests/ui/parser/encode-symbol-ice-12920.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/encode-symbol-ice-12920.rs b/tests/ui/parser/encode-symbol-ice-12920.rs
new file mode 100644
index 00000000000..87389c0ffb4
--- /dev/null
+++ b/tests/ui/parser/encode-symbol-ice-12920.rs
@@ -0,0 +1,10 @@
+//! Regression test for https://github.com/rust-lang/rust/issues/12920
+
+//@ run-fail
+//@ error-pattern:explicit panic
+//@ needs-subprocess
+
+pub fn main() {
+    panic!();
+    println!("{}", 1);
+}