mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-07-04 03:26:04 +08:00
18 lines
244 B
Rust
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
|
|
}
|