xref: /llvm-project/clang/test/Parser/arm-windows-calling-convention-handling.c (revision c85d26b0f3dbef5d78c330c4610e355766fdbb0f)
1 // RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -triple aarch64-windows -fms-compatibility -fsyntax-only -verify %s
3 
cdecl(int a,int b,int c,int d)4 int __cdecl cdecl(int a, int b, int c, int d) { // expected-no-diagnostics
5   return a + b + c + d;
6 }
7 
stdcall(float a,float b,float c,float d)8 float __stdcall stdcall(float a, float b, float c, float d) { // expected-no-diagnostics
9   return a + b + c + d;
10 }
11