Clang Project

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