summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs
blob: fc47a9061d3c02b5f7f76c8065f8f12e3c317950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// only-x86
#[link(name = "foo")]
extern "C" {
    #[link_ordinal(42)]
    //~^ ERROR: `#[link_ordinal]` is unstable on x86
    fn foo();
    #[link_ordinal(5)]
    //~^ ERROR: `#[link_ordinal]` is unstable on x86
    static mut imported_variable: i32;
}

fn main() {}