xref: /aosp_15_r20/external/clang/test/Sema/MicrosoftCompatibility.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-compatibility
2*67e74705SXin Li 
3*67e74705SXin Li // PR15845
4*67e74705SXin Li int foo(xxx); // expected-error{{unknown type name}}
5*67e74705SXin Li 
6*67e74705SXin Li struct cls {
7*67e74705SXin Li   char *m;
8*67e74705SXin Li };
9*67e74705SXin Li 
10*67e74705SXin Li char * cls::* __uptr wrong2 = &cls::m; // expected-error {{'__uptr' attribute cannot be used with pointers to members}}
11