MicrosoftCompatibility.cpp 307 B

12345678910
  1. // RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-compatibility
  2. // PR15845
  3. int foo(xxx); // expected-error{{unknown type name}}
  4. struct cls {
  5. char *m;
  6. };
  7. char * cls::* __uptr wrong2 = &cls::m; // expected-error {{'__uptr' attribute cannot be used with pointers to members}}