summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2627-raw-dylib/unsupported-abi.rs
blob: 2f5a23e47a74963e5d9341b9e8553f1444f5448f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// only-x86_64
// only-windows
// compile-flags: --crate-type lib --emit link
#[link(name = "foo", kind = "raw-dylib")]
extern "stdcall" {
    fn f(x: i32);
    //~^ ERROR ABI not supported by `#[link(kind = "raw-dylib")]` on this architecture
}

pub fn lib_main() {
    unsafe { f(42); }
}