Files
rust/tests/ui/box/unit/unwind-unique.rs

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

17 lines
220 B
Rust
Raw Normal View History

//@ run-pass
//@ needs-unwind
//@ needs-threads
//@ ignore-backends: gcc
2015-02-17 15:10:25 -08:00
use std::thread;
2012-01-04 21:14:53 -08:00
fn f() {
let _a: Box<_> = Box::new(0);
panic!();
}
pub fn main() {
let t = thread::spawn(f);
drop(t.join());
}