2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_attributes)]
|
2016-01-29 04:11:24 -06:00
|
|
|
// aux-build:issue-29485.rs
|
2021-12-03 09:32:51 -06:00
|
|
|
// needs-unwind
|
2017-10-17 20:45:42 -05:00
|
|
|
// ignore-emscripten no threads
|
2016-01-29 04:11:24 -06:00
|
|
|
|
|
|
|
#[feature(recover)]
|
|
|
|
|
|
|
|
extern crate a;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = std::thread::spawn(move || {
|
|
|
|
a::f(&mut a::X(0), g);
|
|
|
|
}).join();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn g() {
|
|
|
|
panic!();
|
|
|
|
}
|