2014-04-04 02:55:06 +02:00
|
|
|
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
|
2012-12-10 17:32:48 -08:00
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2012-01-12 22:17:21 -08:00
|
|
|
// error-pattern:whatever
|
|
|
|
|
2015-03-30 11:00:05 -07:00
|
|
|
#![feature(rustc_private, exit_status)]
|
2015-03-05 18:33:58 -08:00
|
|
|
|
2014-12-31 20:43:46 -08:00
|
|
|
#[macro_use] extern crate log;
|
2015-03-30 11:00:05 -07:00
|
|
|
use std::env;
|
2013-05-24 19:35:29 -07:00
|
|
|
|
2012-01-12 22:17:21 -08:00
|
|
|
fn main() {
|
2013-10-21 13:08:31 -07:00
|
|
|
error!("whatever");
|
2014-10-09 15:17:22 -04:00
|
|
|
// 101 is the code the runtime uses on task panic and the value
|
2012-01-12 22:17:21 -08:00
|
|
|
// compiletest expects run-fail tests to return.
|
2015-03-30 11:00:05 -07:00
|
|
|
env::set_exit_status(101);
|
2013-02-14 11:47:00 -08:00
|
|
|
}
|