xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/arm-windows-calling-convention-handling.c (revision bdb565187c0f1a04513dd488df843317b27f86c8)
1 // RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -fsyntax-only -verify %s
2 
3 int __cdecl cdecl(int a, int b, int c, int d) { // expected-warning {{calling convention '__cdecl' ignored for this target}}
4   return a + b + c + d;
5 }
6 
7 float __stdcall stdcall(float a, float b, float c, float d) { // expected-warning {{calling convention '__stdcall' ignored for this target}}
8   return a + b + c + d;
9 }
10 
11