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