about summary refs log tree commit diff
path: root/tests/ui/issues/issue-29485.rs
blob: 8e6436cb11e34a350e14430e6413bd7c72586df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@ run-pass
#![allow(unused_attributes)]
//@ aux-build:issue-29485.rs
//@ needs-unwind
//@ needs-threads
//@ ignore-backends: gcc

#[feature(recover)]

extern crate a;

fn main() {
    let _ = std::thread::spawn(move || {
        a::f(&mut a::X(0), g);
    }).join();
}

fn g() {
    panic!();
}