]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/unwind-abis/feature-gate-thiscall-unwind.rs
1 // gate-test-abi_thiscall
3 // needs-llvm-components: x86
4 // compile-flags: --target=i686-pc-windows-msvc --crate-type=rlib
6 #![feature(no_core, lang_items)]
10 // Test that the "thiscall-unwind" ABI is feature-gated, and cannot be used when
11 // the `c_unwind` feature gate is not used.
13 extern "thiscall-unwind" fn fu() {}
//~ ERROR thiscall-unwind ABI is experimental
14 extern "thiscall" fn f() {}
//~ ERROR thiscall is experimental
17 extern "thiscall" fn m(); //~ ERROR thiscall is experimental
18 extern "thiscall-unwind" fn mu(); //~ ERROR thiscall-unwind ABI is experimental
20 extern "thiscall" fn dm() {}
//~ ERROR thiscall is experimental
21 extern "thiscall-unwind" fn dmu() {}
//~ ERROR thiscall-unwind ABI is experimental
26 extern "thiscall" fn m() {}
//~ ERROR thiscall is experimental
27 extern "thiscall-unwind" fn mu() {}
//~ ERROR thiscall-unwind ABI is experimental
31 extern "thiscall" fn im() {}
//~ ERROR thiscall is experimental
32 extern "thiscall-unwind" fn imu() {}
//~ ERROR thiscall-unwind ABI is experimental
35 type TA
= extern "thiscall" fn(); //~ ERROR thiscall is experimental
36 type TAU
= extern "thiscall-unwind" fn(); //~ ERROR thiscall-unwind ABI is experimental
38 extern "thiscall" {}
//~ ERROR thiscall is experimental
39 extern "thiscall-unwind" {}
//~ ERROR thiscall-unwind ABI is experimental