summaryrefslogtreecommitdiffstats
path: root/tests/run-make/cross-lang-lto-pgo-smoketest/main.rs
blob: 8129dcb85d96a0442f390f86a63154f3ff580377 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[link(name = "xyz")]
extern "C" {
    fn c_always_inlined() -> u32;
    fn c_never_inlined() -> u32;
}

fn main() {
    unsafe {
        println!("blub: {}", c_always_inlined() + c_never_inlined());
    }
}