blob: 11a5b78ab910e9d84de09f9246bd99eb63260e40 [file] [log] [blame] [edit]
//! regression test for issue <https://github.com/rust-lang/rust/issues/122509>
//@ build-pass
//@ compile-flags: -C codegen-units=2 --emit asm
fn one() -> usize {
1
}
pub mod a {
pub fn two() -> usize {
crate::one() + crate::one()
}
}
pub mod b {
pub fn three() -> usize {
crate::one() + crate::a::two()
}
}
fn main() {
a::two();
b::three();
}