blob: e5a5ac2eb2bf12747811b9dd525a5c56b49e2747 [file] [log] [blame]
// only-x86_64-pc-windows-msvc
// compile-flags: --crate-type lib --emit link
#![allow(incomplete_features)]
#![feature(raw_dylib)]
#[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); }
}