1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-compatibility -triple x86_64-pc-win32
2*f4a2713aSLionel Sambuc int __stdcall f(void); /* expected-warning {{calling convention '__stdcall' ignored for this target}} */
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc /* This should compile without warning because __stdcall is treated
5*f4a2713aSLionel Sambuc as __cdecl in MS compatibility mode for x64 compiles*/
f(void)6*f4a2713aSLionel Sambuc int __cdecl f(void) {
7*f4a2713aSLionel Sambuc return 0;
8*f4a2713aSLionel Sambuc }
9