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

8 lines
221 B
Rust

// error-pattern:whatever
fn main() {
log(error, "whatever");
// 101 is the code the runtime uses on task failure and the value
// compiletest expects run-fail tests to return.
os::set_exit_status(101);
}