]> git.lizzy.rs Git - rust.git/blob - src/test/ui/process-termination/process-termination-simple.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / test / ui / process-termination / process-termination-simple.rs
1 // program should terminate when std::process::exit is called from any thread
2
3 // run-pass
4 // ignore-emscripten no threads support
5
6 use std::{process, thread};
7
8 fn main() {
9     let h = thread::spawn(|| {
10         process::exit(0);
11     });
12     let _ = h.join();
13 }