summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2010-09-12 05:06:55 +0000
committerFrancois Pichet <pichet2000@gmail.com>2010-09-12 05:06:55 +0000
commit488b4a7d943bcbdf490d40868902fcd556dd4299 (patch)
tree89c05c4065228fe18c26bfeb7f66fba1e56b4320 /clang/test
parent86ddae50f6a4f814157e6405a4bfc9c7663a5dd9 (diff)
downloadbcm5719-llvm-488b4a7d943bcbdf490d40868902fcd556dd4299.tar.gz
bcm5719-llvm-488b4a7d943bcbdf490d40868902fcd556dd4299.zip
Add basic support for Microsoft enum forward declaration.
Assigning an underlying integral type to an enum forward declaration will come in a next patch. llvm-svn: 113716
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaCXX/MicrosoftExtensions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/MicrosoftExtensions.cpp b/clang/test/SemaCXX/MicrosoftExtensions.cpp
index 93650a53f44..7cc1675f2e7 100644
--- a/clang/test/SemaCXX/MicrosoftExtensions.cpp
+++ b/clang/test/SemaCXX/MicrosoftExtensions.cpp
@@ -84,3 +84,7 @@ void m1() {
h1<int>(&M::addP);
h1(&M::subtractP);
}
+
+//MSVC allows forward enum declaration
+enum ENUM; // expected-warning {{forward references to 'enum' types are a Microsoft extension}}
+ENUM *var;
OpenPOWER on IntegriCloud