blob: b04c2facbcdf38770434be940fee86a893584867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#[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() {}
|