2024-02-16 14:02:50 -06:00
|
|
|
//@ run-pass
|
2019-11-05 18:00:00 -06:00
|
|
|
#![feature(lang_items, start)]
|
2018-05-29 13:26:10 -05:00
|
|
|
#![no_std]
|
|
|
|
|
|
|
|
extern crate std as other;
|
|
|
|
|
|
|
|
mod foo {
|
|
|
|
pub fn test() {
|
|
|
|
let x = core::cmp::min(2, 3);
|
|
|
|
assert_eq!(x, 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[start]
|
|
|
|
fn start(_argc: isize, _argv: *const *const u8) -> isize {
|
|
|
|
foo::test();
|
|
|
|
0
|
|
|
|
}
|