blob: 63eb2c747068be1ed92a734f7f144aab21e95caf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// program should terminate when std::process::exit is called from any thread
//@ run-pass
//@ ignore-emscripten no threads support
use std::{process, thread};
fn main() {
let h = thread::spawn(|| {
process::exit(0);
});
let _ = h.join();
}
|