rust/tests/ui/attributes/used_with_arg_no_mangle.rs

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

10 lines
159 B
Rust
Raw Normal View History

// check-pass
#![feature(used_with_arg)]
#[used(linker)]
#[no_mangle] // accidentally detected as `used(compiler)`
pub static GLOB: usize = 0;
fn main() {}