rust/tests/ui/attributes/unsafe/unsafe-attributes.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
164 B
Rust
Raw Normal View History

2024-04-28 20:43:07 +00:00
//@ build-pass
#[unsafe(no_mangle)]
fn a() {}
#[unsafe(export_name = "foo")]
fn b() {}
#[cfg_attr(any(), unsafe(no_mangle))]
static VAR2: u32 = 1;
2024-04-28 20:43:07 +00:00
fn main() {}