summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx0x-ambig.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-06-25 21:37:02 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-06-25 21:37:02 +0000
commit369b9f997cc2bf19aebe0220ab484b80c5932eb2 (patch)
treeca6bfb0919b31794f0c6e133bbe2a81b55a48a7f /clang/test/Parser/cxx0x-ambig.cpp
parentc272bab5a51067accdfc29d6339d3ce8717baf9e (diff)
downloadbcm5719-llvm-369b9f997cc2bf19aebe0220ab484b80c5932eb2.tar.gz
bcm5719-llvm-369b9f997cc2bf19aebe0220ab484b80c5932eb2.zip
Extend the "expected ';' after struct" logic to also apply to enums, and to
struct and enum forward-declarations. llvm-svn: 159164
Diffstat (limited to 'clang/test/Parser/cxx0x-ambig.cpp')
-rw-r--r--clang/test/Parser/cxx0x-ambig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx0x-ambig.cpp b/clang/test/Parser/cxx0x-ambig.cpp
index 98757b48c71..e1e6ff76ad8 100644
--- a/clang/test/Parser/cxx0x-ambig.cpp
+++ b/clang/test/Parser/cxx0x-ambig.cpp
@@ -57,7 +57,7 @@ namespace bitfield {
// This could be a bit-field, but would be ill-formed due to the anonymous
// member being initialized.
struct S5 {
- enum E : int { a = 1 } { b = 2 }; // expected-error {{expected member name}}
+ enum E : int { a = 1 } { b = 2 }; // expected-error {{expected ';' after enum}} expected-error {{expected member name}}
};
// This could be a bit-field.
struct S6 {
OpenPOWER on IntegriCloud