blob: 7d1f64996eb3c504861bbfabbf1da2ae2c391863 [file] [log] [blame]
Reid Kleckner9fde2e02015-02-26 19:43:46 +00001// RUN: %clang_cc1 %s -Wmicrosoft -verify -fms-compatibility -triple x86_64-pc-win32
Aaron Ballmane91c6be2012-10-02 14:26:08 +00002
Reid Kleckner9fde2e02015-02-26 19:43:46 +00003// None of these should warn. stdcall is treated as equivalent to cdecl on
4// x64.
5// expected-no-diagnostics
6
7int __stdcall f(void);
Aaron Ballmane91c6be2012-10-02 14:26:08 +00008int __cdecl f(void) {
9 return 0;
10}
Reid Kleckner9fde2e02015-02-26 19:43:46 +000011int __stdcall func_std(void);
12int __thiscall func_this(void);
13int __fastcall func_fast(void);