Files
rust-based-os-comp2022/ci-user/user/src/bin/ch5_exit1.rs
2022-06-28 09:27:28 +08:00

18 lines
244 B
Rust

#![no_std]
#![no_main]
extern crate user_lib;
use user_lib::exit;
/*
辅助测例,正常退出,不输出 FAIL 即可。
*/
#[allow(unreachable_code)]
#[no_mangle]
pub fn main() -> i32 {
exit(-233);
panic!("FAIL: T.T\n");
0
}