diff options
Diffstat (limited to 'test/Sema/MicrosoftCompatibility.cpp')
-rw-r--r-- | test/Sema/MicrosoftCompatibility.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/MicrosoftCompatibility.cpp b/test/Sema/MicrosoftCompatibility.cpp index 15c2558..90a45df 100644 --- a/test/Sema/MicrosoftCompatibility.cpp +++ b/test/Sema/MicrosoftCompatibility.cpp @@ -2,3 +2,9 @@ // PR15845 int foo(xxx); // expected-error{{unknown type name}} + +struct cls { + char *m; +}; + +char * cls::* __uptr wrong2 = &cls::m; // expected-error {{'__uptr' attribute cannot be used with pointers to members}} |