blob: b1e64dabac7f80f144919ab93c30b5c3eabe90ea [file] [log] [blame]
//@ check-fail
#![feature(linkage)]
extern "C" {
#[linkage = "extern_weak"]
static foo: i32;
//~^ ERROR: invalid type for variable with `#[linkage]` attribute
}
fn main() {
println!("{}", unsafe { foo });
}