xref: /aosp_15_r20/external/clang/test/Sema/MicrosoftCompatibility-x86.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-compatibility -triple i386-pc-win32
2*67e74705SXin Li int __stdcall f(void); /* expected-note {{previous declaration is here}} */
3*67e74705SXin Li 
f(void)4*67e74705SXin Li int __cdecl f(void) { /* expected-error {{function declared 'cdecl' here was previously declared 'stdcall'}} */
5*67e74705SXin Li   return 0;
6*67e74705SXin Li }
7