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