mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
18 lines
393 B
Rust
18 lines
393 B
Rust
#![cfg_attr(target_arch = "x86", feature(raw_dylib))]
|
|
|
|
#[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() {}
|