diff options
Diffstat (limited to 'clang/test/Parser/cxx-decl.cpp')
-rw-r--r-- | clang/test/Parser/cxx-decl.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-decl.cpp b/clang/test/Parser/cxx-decl.cpp index 308700e50d6..4453c4c3d0d 100644 --- a/clang/test/Parser/cxx-decl.cpp +++ b/clang/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; +}; + |