rust/tests/ui/attributes/unsafe/unsafe-attributes.rs
2024-08-07 03:12:13 -05:00

13 lines
164 B
Rust

//@ build-pass
#[unsafe(no_mangle)]
fn a() {}
#[unsafe(export_name = "foo")]
fn b() {}
#[cfg_attr(any(), unsafe(no_mangle))]
static VAR2: u32 = 1;
fn main() {}