summaryrefslogtreecommitdiffstats
path: root/test/Sema/MicrosoftCompatibility.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/MicrosoftCompatibility.cpp')
-rw-r--r--test/Sema/MicrosoftCompatibility.cpp6
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}}
OpenPOWER on IntegriCloud