summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-large.rs
blob: 46731581ebcb0c2ba29957cfa462ced6f834eb98 (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(72436)]
    //~^ ERROR ordinal value in `link_ordinal` is too large: `72436`
    fn foo();
    #[link_ordinal(72436)]
    //~^ ERROR ordinal value in `link_ordinal` is too large: `72436`
    static mut imported_variable: i32;
}

fn main() {}