// RUN: %clang_cc1 %s -triple x86_64-scei-ps4 -DPS4 -fsyntax-only -verify
// RUN: %clang_cc1 %s -triple x86_64-unknown-linux-gnu -fsyntax-only -verify
// PS4 does not support these.
void __vectorcall // expected-error {{'__vectorcall' calling convention is not supported for this target}}
void __regcall // expected-error {{'__regcall' calling convention is not supported for this target}}
void // expected-error {{'vectorcall' calling convention is not supported for this target}}
void // expected-error {{'regcall' calling convention is not supported for this target}}
void // expected-error {{'ms_abi' calling convention is not supported for this target}}
void // expected-error {{'intel_ocl_bicc' calling convention is not supported for this target}}
void // expected-error {{'swiftcall' calling convention is not supported for this target}}
void // expected-error {{'swiftasynccall' calling convention is not supported for this target}}
void // expected-error {{'pascal' calling convention is not supported for this target}}
void // expected-error {{'preserve_most' calling convention is not supported for this target}}
void // expected-error {{'preserve_all' calling convention is not supported for this target}}
void // expected-error {{'stdcall' calling convention is not supported for this target}}
void // expected-error {{'fastcall' calling convention is not supported for this target}}
void // expected-error {{'thiscall' calling convention is not supported for this target}}
void __vectorcall
void __regcall
void
void
void
void
void
void
void
void
// Same function with different calling conventions. Error with a note pointing to the last decl.
void ; // expected-note {{previous declaration is here}}
void ; // expected-error {{function declared 'preserve_most' here was previously declared 'preserve_all'}}
void // expected-warning {{'pascal' calling convention is not supported for this target}}
void // expected-warning {{'stdcall' calling convention is not supported for this target}}
void // expected-warning {{'fastcall' calling convention is not supported for this target}}
void // expected-warning {{'thiscall' calling convention is not supported for this target}}
void
void