about summary refs log tree commit diff
path: root/tests/ui/panic-runtime/unwind-interleaved.rs
blob: 83eb636509755fcc0ac811e382ae0f433e14a271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ run-fail
//@ error-pattern:explicit panic
//@ needs-subprocess

fn a() {}

fn b() {
    panic!();
}

fn main() {
    let _x = vec![0];
    a();
    let _y = vec![0];
    b();
}