Sign in
rust
/
rust
/
08650fbb506c44fbc95d91abfb7cd95a56bbff30
/
.
/
src
/
test
/
ui
/
process-termination
/
process-termination-simple.rs
blob: 8f2e5b94c3a6e104a89dec72308031fec6e56af7 [
file
]
// 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
();
}