aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r--test/Parser/cxx-decl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp
index 308700e50d..4453c4c3d0 100644
--- a/test/Parser/cxx-decl.cpp
+++ b/test/Parser/cxx-decl.cpp
@@ -2,6 +2,8 @@
int x(*g); // expected-error {{use of undeclared identifier 'g'}}
+struct Type { };
+
// PR4451 - We should recover well from the typo of '::' as ':' in a2.
namespace y {
@@ -31,3 +33,10 @@ class someclass {
return 1 ? P->x : P->y;
}
};
+
+enum { fooenum = 1 };
+
+struct a {
+ int Type : fooenum;
+};
+