mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
433da1fc04
They pass fine.
31 lines
338 B
Rust
31 lines
338 B
Rust
#![feature(start)]
|
|
|
|
#[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 {
|
|
a::f();
|
|
b::f();
|
|
|
|
0
|
|
}
|