]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2627-raw-dylib/unsupported-abi.rs
Auto merge of #99505 - joboet:futex_once, r=thomcc
[rust.git] / src / test / ui / rfc-2627-raw-dylib / unsupported-abi.rs
1 // only-x86_64
2 // only-windows
3 // compile-flags: --crate-type lib --emit link
4 #[link(name = "foo", kind = "raw-dylib")]
5 extern "stdcall" {
6     fn f(x: i32);
7     //~^ ERROR ABI not supported by `#[link(kind = "raw-dylib")]` on this architecture
8 }
9
10 pub fn lib_main() {
11     unsafe { f(42); }
12 }