rust/src/test/ui/linkage-attr/linkage3.rs

17 lines
392 B
Rust
Raw Normal View History

2019-04-09 15:08:57 -05:00
// FIXME https://github.com/rust-lang/rust/issues/59774
// check-fail
2019-04-09 15:08:57 -05:00
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
#![feature(linkage)]
extern {
2014-06-25 14:47:34 -05:00
#[linkage = "foo"] static foo: *const i32;
//~^ ERROR: invalid linkage specified
}
fn main() {
println!("{:?}", unsafe { foo });
}