diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-10 01:59:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-10 01:59:24 +0000 |
commit | a1efc8c8c6460d860d6509b05b341e77ed9bfe87 (patch) | |
tree | 27844472a4064b1421b177bb8b82d56ee217305d /test/Parser/cxx-decl.cpp | |
parent | 864143fe14b8059eed1413d38854b689f7b21016 (diff) |
fix incorrect parsing of bitfields pointed out by Doug. I chose
to use ColonProtectionRAIIObject in the C codepath even though it
won't matter for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r-- | test/Parser/cxx-decl.cpp | 9 |
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; +}; + |