diff options
Diffstat (limited to 'test/Parser/arm-windows-calling-convention-handling.c')
-rw-r--r-- | test/Parser/arm-windows-calling-convention-handling.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Parser/arm-windows-calling-convention-handling.c b/test/Parser/arm-windows-calling-convention-handling.c new file mode 100644 index 0000000..7717aad --- /dev/null +++ b/test/Parser/arm-windows-calling-convention-handling.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -fsyntax-only -verify %s + +int __cdecl cdecl(int a, int b, int c, int d) { // expected-warning {{calling convention '__cdecl' ignored for this target}} + return a + b + c + d; +} + +float __stdcall stdcall(float a, float b, float c, float d) { // expected-warning {{calling convention '__stdcall' ignored for this target}} + return a + b + c + d; +} + |