rust/src/test/ui/unwind-unique.rs

15 lines
199 B
Rust
Raw Normal View History

// run-pass
// ignore-emscripten no threads support
2015-02-17 23:10:25 +00:00
use std::thread;
2012-01-05 05:14:53 +00:00
fn f() {
let _a: Box<_> = Box::new(0);
panic!();
}
pub fn main() {
let t = thread::spawn(f);
drop(t.join());
}