about summary refs log tree commit diff
path: root/src/tools/miri/tests/fail/panic/double_panic.rs
blob: 4d8f4cb6fb7bad81514909f176dabb6d1e2f2e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@normalize-stderr-test: "\|.*::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");
}