summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panics/test-should-fail-bad-message.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/panics/test-should-fail-bad-message.rs')
-rw-r--r--src/test/ui/panics/test-should-fail-bad-message.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/panics/test-should-fail-bad-message.rs b/src/test/ui/panics/test-should-fail-bad-message.rs
new file mode 100644
index 000000000..701f26776
--- /dev/null
+++ b/src/test/ui/panics/test-should-fail-bad-message.rs
@@ -0,0 +1,10 @@
+// run-fail
+// check-stdout
+// compile-flags: --test
+// ignore-emscripten
+
+#[test]
+#[should_panic(expected = "foobar")]
+fn test_foo() {
+ panic!("blah")
+}