]> git.lizzy.rs Git - rust.git/blob - tests/ui/unwind-unique.rs
Auto merge of #107618 - chriswailes:linker-arg, r=albertlarsan68
[rust.git] / tests / ui / unwind-unique.rs
1 // run-pass
2 // needs-unwind
3 // ignore-emscripten no threads support
4
5 use std::thread;
6
7 fn f() {
8     let _a: Box<_> = Box::new(0);
9     panic!();
10 }
11
12 pub fn main() {
13     let t = thread::spawn(f);
14     drop(t.join());
15 }