blob: 8f5f185b7f9b9ec8574f384cc169373ad167aa32 [file] [log] [blame] [edit]
// program should terminate when std::process::exit is called from any thread
//@ run-pass
//@ needs-threads
use std::{process, thread};
fn main() {
let h = thread::spawn(|| {
process::exit(0);
});
let _ = h.join();
}