rust/tests/ui/unwind-unique.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
215 B
Rust
Raw Normal View History

// run-pass
// needs-unwind
// 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());
}