about summary refs log tree commit diff
path: root/tests/run-make/include-all-symbols-linking/lib.rs
blob: 73186ee99e3d99771d4a774fd28a6f222d8a941d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod foo {
    #[cfg_attr(target_os = "linux", link_section = ".rodata.STATIC")]
    #[cfg_attr(target_vendor = "apple", link_section = "__DATA,STATIC")]
    #[used]
    static STATIC: [u32; 10] = [1; 10];
}

mod bar {
    #[no_mangle]
    extern "C" fn bar() -> i32 {
        0
    }
}