2019-04-09 15:08:57 -05:00
|
|
|
// FIXME https://github.com/rust-lang/rust/issues/59774
|
2019-12-13 21:28:32 -06:00
|
|
|
|
2020-04-30 10:27:33 -05:00
|
|
|
// 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" -> ""
|
|
|
|
|
2014-03-21 20:05:05 -05:00
|
|
|
#![feature(linkage)]
|
2014-02-25 18:15:10 -06:00
|
|
|
|
|
|
|
extern {
|
2014-06-25 14:47:34 -05:00
|
|
|
#[linkage = "foo"] static foo: *const i32;
|
2014-02-25 18:15:10 -06:00
|
|
|
//~^ ERROR: invalid linkage specified
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2016-08-26 11:23:42 -05:00
|
|
|
println!("{:?}", unsafe { foo });
|
2014-02-25 18:15:10 -06:00
|
|
|
}
|