]> git.lizzy.rs Git - rust.git/blob - src/test/ui/process-termination/process-termination-simple.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[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 }