rust/tests/ui/rfc-2627-raw-dylib/unsupported-abi.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
291 B
Rust
Raw Normal View History

// 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); }
}