rust/tests/ui/feature-gates/feature-gate-raw-dylib-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
269 B
Rust
Raw Normal View History

2022-07-29 13:18:07 -05:00
// only-x86
2020-09-01 16:12:52 -05:00
#[link(name = "foo")]
extern "C" {
2019-09-18 09:40:08 -05:00
#[link_ordinal(42)]
2022-07-29 13:18:07 -05:00
//~^ ERROR: `#[link_ordinal]` is unstable on x86
2019-09-18 09:40:08 -05:00
fn foo();
#[link_ordinal(5)]
2022-07-29 13:18:07 -05:00
//~^ ERROR: `#[link_ordinal]` is unstable on x86
static mut imported_variable: i32;
2019-09-18 09:40:08 -05:00
}
fn main() {}