2017-12-22 14:06:18 -06:00
|
|
|
#![feature(start)]
|
|
|
|
|
2014-08-01 17:45:24 -05:00
|
|
|
#[inline]
|
|
|
|
fn inlined() -> u32 {
|
|
|
|
1234
|
|
|
|
}
|
|
|
|
|
|
|
|
fn normal() -> u32 {
|
|
|
|
2345
|
|
|
|
}
|
|
|
|
|
|
|
|
mod a {
|
|
|
|
pub fn f() -> u32 {
|
|
|
|
::inlined() + ::normal()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod b {
|
|
|
|
pub fn f() -> u32 {
|
|
|
|
::inlined() + ::normal()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-22 14:06:18 -06:00
|
|
|
#[start]
|
|
|
|
fn start(_: isize, _: *const *const u8) -> isize {
|
2014-08-01 17:45:24 -05:00
|
|
|
a::f();
|
|
|
|
b::f();
|
2017-12-22 14:06:18 -06:00
|
|
|
|
|
|
|
0
|
2014-08-01 17:45:24 -05:00
|
|
|
}
|