mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
15 lines
377 B
Rust
15 lines
377 B
Rust
// only-windows
|
|
#![cfg_attr(target_arch = "x86", feature(raw_dylib))]
|
|
|
|
#[link(name = "foo", kind = "raw-dylib")]
|
|
extern "C" {
|
|
#[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes
|
|
#[link_ordinal(2)]
|
|
fn foo();
|
|
#[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes
|
|
#[link_ordinal(2)]
|
|
static mut imported_variable: i32;
|
|
}
|
|
|
|
fn main() {}
|