2020-03-25 21:28:14 -05:00
|
|
|
// program should terminate when std::process::exit is called from any thread
|
|
|
|
|
|
|
|
// run-pass
|
2020-05-01 19:03:39 -05:00
|
|
|
// ignore-emscripten no threads support
|
2020-03-25 21:28:14 -05:00
|
|
|
|
|
|
|
use std::{process, thread};
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let h = thread::spawn(|| {
|
|
|
|
process::exit(0);
|
|
|
|
});
|
|
|
|
let _ = h.join();
|
|
|
|
}
|