clang/test/Sema/MicrosoftCompatibility-x64.c
raw| 1 | // RUN: %clang_cc1 %s -Wmicrosoft -verify -triple x86_64-pc-win32 |
| 2 | // RUN: %clang_cc1 %s -Wmicrosoft -verify -triple x86_64-w64-mingw32 |
| 3 | // RUN: %clang_cc1 %s -Wmicrosoft -verify -triple x86_64-pc-cygwin |
| 4 | |
| 5 | // None of these should warn. stdcall is treated as equivalent to cdecl on |
| 6 | // x64. |
| 7 | // expected-no-diagnostics |
| 8 | |
| 9 | int __stdcall f(void); |
| 10 | int __cdecl f(void) { |
| 11 | return 0; |
| 12 | } |
| 13 | int __stdcall func_std(void); |
| 14 | int __thiscall func_this(void); |
| 15 | int __fastcall func_fast(void); |