mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
14 lines
343 B
Rust
14 lines
343 B
Rust
#![cfg_attr(target_arch = "x86", feature(raw_dylib))]
|
|
|
|
#[link(name = "foo")]
|
|
extern "C" {
|
|
#[link_ordinal(3, 4)]
|
|
//~^ ERROR incorrect number of arguments to `#[link_ordinal]`
|
|
fn foo();
|
|
#[link_ordinal(3, 4)]
|
|
//~^ ERROR incorrect number of arguments to `#[link_ordinal]`
|
|
static mut imported_variable: i32;
|
|
}
|
|
|
|
fn main() {}
|