2021-11-01 17:49:58 -05:00
|
|
|
// only-x86_64
|
|
|
|
// only-windows
|
2021-06-08 15:56:06 -05:00
|
|
|
// 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); }
|
|
|
|
}
|