2019-07-27 00:54:25 +03:00
|
|
|
// run-pass
|
2016-02-11 12:34:41 +01:00
|
|
|
// ignore-emscripten no threads support
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-01-08 02:25:56 +01:00
|
|
|
#![feature(box_syntax)]
|
|
|
|
|
2015-02-17 15:10:25 -08:00
|
|
|
use std::thread;
|
2013-05-24 19:35:29 -07:00
|
|
|
|
2012-01-04 21:14:53 -08:00
|
|
|
fn f() {
|
2015-02-17 21:41:32 +01:00
|
|
|
let _a: Box<_> = box 0;
|
2014-10-09 15:17:22 -04:00
|
|
|
panic!();
|
2011-09-23 14:58:06 -07:00
|
|
|
}
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2015-02-23 09:53:03 -08:00
|
|
|
let t = thread::spawn(f);
|
|
|
|
drop(t.join());
|
2012-07-23 15:53:18 -04:00
|
|
|
}
|