summary refs log tree commit diff
path: root/src/test/run-fail/rt-set-exit-status.rs
blob: e9e8f2394343a48a65542267fd0de4a9a9f9aa78 (plain)
1
2
3
4
5
6
7
8
// 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.
    sys::set_exit_status(101);
}