about summary refs log tree commit diff
path: root/tests/ui/attributes/used_with_arg_no_mangle.rs
blob: 1470e5b691cf4ffc077947a28c17ce37a752452e (plain)
1
2
3
4
5
6
7
8
9
//@ check-pass

#![feature(used_with_arg)]

#[used(linker)]
#[no_mangle] // accidentally detected as `used(compiler)`
pub static GLOB: usize = 0;

fn main() {}