rust/tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
377 B
Rust
Raw Normal View History

// only-windows
2022-07-29 13:18:07 -05:00
#![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() {}