mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
13 lines
269 B
Rust
13 lines
269 B
Rust
// only-x86
|
|
#[link(name = "foo")]
|
|
extern "C" {
|
|
#[link_ordinal(42)]
|
|
//~^ ERROR: `#[link_ordinal]` is unstable on x86
|
|
fn foo();
|
|
#[link_ordinal(5)]
|
|
//~^ ERROR: `#[link_ordinal]` is unstable on x86
|
|
static mut imported_variable: i32;
|
|
}
|
|
|
|
fn main() {}
|