summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs
blob: 631c363d4ba1594dc06dbfb3f780bc0a88ff11d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// only-windows
#![cfg_attr(target_arch = "x86", feature(raw_dylib))]

#[link(name = "foo", kind = "raw-dylib")]
extern "C" {
    #[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes
    #[link_ordinal(2)]
    fn foo();
    #[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes
    #[link_ordinal(2)]
    static mut imported_variable: i32;
}

fn main() {}