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