Clang Project

clang_source_code/test/Parser/arm-windows-calling-convention-handling.c
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
4int __cdecl cdecl(int a, int b, int c, int d) { // expected-no-diagnostics
5  return a + b + c + d;
6}
7
8float __stdcall stdcall(float a, float b, float c, float d) { // expected-no-diagnostics
9  return a + b + c + d;
10}
11