blob: 9feed394110467107d22b7054eea4e4d765e5b2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![cfg_attr(target_arch = "x86", feature(raw_dylib))]
#[link(name = "foo")]
extern "C" {
#[link_ordinal()]
//~^ ERROR incorrect number of arguments to `#[link_ordinal]`
fn foo();
#[link_ordinal()]
//~^ ERROR incorrect number of arguments to `#[link_ordinal]`
static mut imported_variable: i32;
}
fn main() {}
|