summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/MicrosoftExtensions.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-05-22 21:28:12 +0000
committerJohn McCall <rjmccall@apple.com>2012-05-22 21:28:12 +0000
commit8d32c05ed48a8a21e85603c0ae2aebf322ed2652 (patch)
treed72de0791a41fdee5d040ce7b709fd4318caaf4b /clang/test/Parser/MicrosoftExtensions.cpp
parentfa6cf4cc9af67618b8064cc6d7cd1074d371942f (diff)
downloadbcm5719-llvm-8d32c05ed48a8a21e85603c0ae2aebf322ed2652.tar.gz
bcm5719-llvm-8d32c05ed48a8a21e85603c0ae2aebf322ed2652.zip
Recognize the MS inheritance attributes and turn them into attributes
on the RecordDecl. Persist the MS portability type attributes and ignore them in Sema rather than the parser. Patch by João Matos! llvm-svn: 157288
Diffstat (limited to 'clang/test/Parser/MicrosoftExtensions.cpp')
-rw-r--r--clang/test/Parser/MicrosoftExtensions.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Parser/MicrosoftExtensions.cpp b/clang/test/Parser/MicrosoftExtensions.cpp
index 94047884d6b..6219e29f597 100644
--- a/clang/test/Parser/MicrosoftExtensions.cpp
+++ b/clang/test/Parser/MicrosoftExtensions.cpp
@@ -317,3 +317,9 @@ namespace access_protected_PTM {
&A::f;
}
}
+
+namespace Inheritance {
+ class __single_inheritance A;
+ class __multiple_inheritance B;
+ class __virtual_inheritance C;
+}
OpenPOWER on IntegriCloud