about summary refs log tree commit diff
path: root/src/tools/miri/tests/fail/panic/double_panic.rs
blob: ddc75521ecad06b50e5098bc5eaee9751a9b82bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@normalize-stderr-test: "unsafe \{ libc::abort\(\) \}|crate::intrinsics::abort\(\);" -> "ABORT();"
//@normalize-stderr-test: "\| +\^+" -> "| ^"
//@normalize-stderr-test: "\n +[0-9]+:[^\n]+" -> ""
//@normalize-stderr-test: "\n +at [^\n]+" -> ""
//@error-in-other-file: aborted execution

struct Foo;
impl Drop for Foo {
    fn drop(&mut self) {
        panic!("second");
    }
}
fn main() {
    let _foo = Foo;
    panic!("first");
}