]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/feature-gates/feature-gate-vectorcall.rs
1 // gate-test-abi_vectorcall
2 // needs-llvm-components: x86
3 // compile-flags: --target=i686-pc-windows-msvc --crate-type=rlib
5 #![feature(no_core, lang_items)]
9 // Test that the "vectorcall-unwind" ABI is feature-gated, and cannot be used when
10 // the `c_unwind` feature gate is not used.
12 extern "vectorcall" fn f() {}
//~ ERROR vectorcall is experimental
15 extern "vectorcall" fn m(); //~ ERROR vectorcall is experimental
17 extern "vectorcall" fn dm() {}
//~ ERROR vectorcall is experimental
22 extern "vectorcall" fn m() {}
//~ ERROR vectorcall is experimental
26 extern "vectorcall" fn im() {}
//~ ERROR vectorcall is experimental
29 type TA
= extern "vectorcall" fn(); //~ ERROR vectorcall is experimental
31 extern "vectorcall" {}
//~ ERROR vectorcall is experimental