mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
12 lines
330 B
Rust
12 lines
330 B
Rust
|
//@ build-pass
|
||
|
|
||
|
// Make sure that the nested static allocation for `FOO` doesn't inherit `no_mangle`.
|
||
|
#[no_mangle]
|
||
|
pub static mut FOO: &mut [i32] = &mut [42];
|
||
|
|
||
|
// Make sure that the nested static allocation for `BAR` doesn't inherit `export_name`.
|
||
|
#[export_name = "BAR_"]
|
||
|
pub static mut BAR: &mut [i32] = &mut [42];
|
||
|
|
||
|
fn main() {}
|