2021-11-01 17:49:58 -05:00
|
|
|
// only-windows
|
2022-07-29 13:18:07 -05:00
|
|
|
#![cfg_attr(target_arch = "x86", feature(raw_dylib))]
|
2021-09-10 19:34:09 -05:00
|
|
|
|
|
|
|
#[link(name = "foo", kind = "raw-dylib")]
|
|
|
|
extern "C" {
|
2021-11-21 10:02:00 -06:00
|
|
|
#[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes
|
2021-09-10 19:34:09 -05:00
|
|
|
#[link_ordinal(2)]
|
|
|
|
fn foo();
|
2022-08-02 13:36:41 -05:00
|
|
|
#[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes
|
|
|
|
#[link_ordinal(2)]
|
|
|
|
static mut imported_variable: i32;
|
2021-09-10 19:34:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|