2019-04-09 20:08:57 +00:00
|
|
|
// FIXME https://github.com/rust-lang/rust/issues/59774
|
2019-12-14 03:28:32 +00:00
|
|
|
|
2020-04-30 15:27:33 +00:00
|
|
|
// check-fail
|
2019-04-09 20:08:57 +00:00
|
|
|
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
|
|
|
|
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
|
|
|
|
|
2014-03-22 01:05:05 +00:00
|
|
|
#![feature(linkage)]
|
2014-02-26 00:15:10 +00:00
|
|
|
|
|
|
|
extern {
|
2014-06-25 19:47:34 +00:00
|
|
|
#[linkage = "foo"] static foo: *const i32;
|
2014-02-26 00:15:10 +00:00
|
|
|
//~^ ERROR: invalid linkage specified
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2016-08-26 16:23:42 +00:00
|
|
|
println!("{:?}", unsafe { foo });
|
2014-02-26 00:15:10 +00:00
|
|
|
}
|