[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / MicrosoftCompatibility.cpp
blob90a45dfaaf176d903542cb2b37fef342f691df67
1 // RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-compatibility
3 // PR15845
4 int foo(xxx); // expected-error{{unknown type name}}
6 struct cls {
7 char *m;
8 };
10 char * cls::* __uptr wrong2 = &cls::m; // expected-error {{'__uptr' attribute cannot be used with pointers to members}}