blob: 1a128c87a0c30921eb64f603c0d1ff2512c94620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![cfg_attr(target_arch = "x86", feature(raw_dylib))]
#[link(name="foo")]
extern "C" {
#[link_name="foo"]
#[link_ordinal(42)]
//~^ ERROR cannot use `#[link_name]` with `#[link_ordinal]`
fn foo();
#[link_name="foo"]
#[link_ordinal(5)]
//~^ ERROR cannot use `#[link_name]` with `#[link_ordinal]`
static mut imported_variable: i32;
}
fn main() {}
|