clang/test/Parser/x64-windows-calling-convention-handling.c
raw| 1 | // RUN: %clang_cc1 -triple x86_64-windows -fsyntax-only -verify %s |
| 2 | // RUN: %clang_cc1 -triple x86_64-mingw -fsyntax-only -verify %s |
| 3 | // RUN: %clang_cc1 -triple x86_64-cygwin -fsyntax-only -verify %s |
| 4 | |
| 5 | int __cdecl cdecl(int a, int b, int c, int d) { // expected-no-diagnostics |
| 6 | return a + b + c + d; |
| 7 | } |
| 8 | |
| 9 | float __stdcall stdcall(float a, float b, float c, float d) { // expected-no-diagnostics |
| 10 | return a + b + c + d; |
| 11 | } |