1 // RUN: %clang_cc1 -triple arm64ec-windows-msvc -emit-llvm -o - %s -verify
2
3 // ARM64EC doesn't support generating __vectorcall calls... but __vectorcall
4 // function types need to be distinct from __cdecl function types to support
5 // compiling the STL. Make sure we only diagnose constructs that actually
6 // require generating code.
7 void __vectorcall f1();
f2(void __vectorcall p ())8 void f2(void __vectorcall p()) {}
f2(void p ())9 void f2(void p()) {}
10 void __vectorcall (*f3)();
11 void __vectorcall f4(); // expected-error {{__vectorcall}}
f5()12 void __vectorcall f5() { // expected-error {{__vectorcall}}
13 f4(); // expected-error{{__vectorcall}}
14 }
15