rust/tests/ui/process-termination/process-termination-simple.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
262 B
Rust
Raw Normal View History

// 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();
}