We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19429ce commit 12fe500Copy full SHA for 12fe500
1 file changed
src/test/ui/panics/abort-on-panic.rs
@@ -43,10 +43,17 @@ fn testrust() {
43
should_have_aborted();
44
}
45
46
+fn test_always_abort() {
47
+ panic::always_abort();
48
+ let _ = panic::catch_unwind(|| { panic!(); });
49
+ should_have_aborted();
50
+}
51
+
52
fn main() {
53
let tests: &[(_, fn())] = &[
54
("test", test),
55
("testrust", testrust),
56
+ ("test_always_abort", test_always_abort),
57
];
58
59
let args: Vec<String> = env::args().collect();
0 commit comments