rust/tests/run-make/sepcomp-inlining/foo.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
338 B
Rust
Raw Permalink Normal View History

#![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()
}
}
#[start]
fn start(_: isize, _: *const *const u8) -> isize {
2014-08-01 17:45:24 -05:00
a::f();
b::f();
0
2014-08-01 17:45:24 -05:00
}