2022-07-29 13:18:07 -05:00
|
|
|
#![cfg_attr(target_arch = "x86", feature(raw_dylib))]
|
2022-08-02 12:33:27 -05:00
|
|
|
|
|
|
|
#[link(name = "foo")]
|
|
|
|
extern "C" {
|
|
|
|
#[link_ordinal(3)]
|
|
|
|
//~^ ERROR `#[link_ordinal]` is only supported if link kind is `raw-dylib`
|
|
|
|
fn foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[link(name = "bar", kind = "static")]
|
|
|
|
extern "C" {
|
|
|
|
#[link_ordinal(3)]
|
|
|
|
//~^ ERROR `#[link_ordinal]` is only supported if link kind is `raw-dylib`
|
|
|
|
fn bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|