rust/tests/run-make/issue-47384/lib.rs

13 lines
182 B
Rust
Raw Normal View History

2022-02-08 18:02:51 -06:00
mod foo {
#[link_section = ".rodata.STATIC"]
#[used]
static STATIC: [u32; 10] = [1; 10];
}
mod bar {
#[no_mangle]
extern "C" fn bar() -> i32 {
0
}
}