rust/src/test/run-fail/rt-set-exit-status-fail2.rs
2012-04-19 01:26:17 -07:00

15 lines
375 B
Rust

// error-pattern:whatever
fn main() {
log(error, "whatever");
task::spawn {||
resource r(_i: ()) {
// Setting the exit status after the runtime has already
// failed has no effect and the process exits with the
// runtime's exit code
os::set_exit_status(50);
}
let i = r(());
};
fail;
}