about summary refs log tree commit diff
path: root/tests/ui/attributes/unsafe/unsafe-attributes.rs
blob: 5c57767b3b964e5a411335ca1d49800e9fbc8a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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() {}