blob: 52f152895ad7c5207e296869d09d1791caea120a (
plain)
1
2
3
4
5
6
7
8
9
10
|
// error-pattern:whatever
fn main() {
log(error, "whatever");
// Setting the exit status only works when the scheduler terminates
// normally. In this case we're going to fail, so instead of of
// returning 50 the process will return the typical rt failure code.
os::set_exit_status(50);
fail;
}
|