about summary refs log tree commit diff
path: root/tests/ui/unpretty/avoid-crash.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unpretty/avoid-crash.rs')
-rw-r--r--tests/ui/unpretty/avoid-crash.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/unpretty/avoid-crash.rs b/tests/ui/unpretty/avoid-crash.rs
new file mode 100644
index 00000000000..fd84b70d944
--- /dev/null
+++ b/tests/ui/unpretty/avoid-crash.rs
@@ -0,0 +1,4 @@
+// normalize-stderr-test "error `.*`" -> "$$ERROR_MESSAGE"
+// compile-flags: -o/tmp/ -Zunpretty=ast-tree
+
+fn main() {}