summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx0x-decl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-09-13 19:12:50 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-09-13 19:12:50 +0000
commit7696571d2b6b4d0d58de4d2b5be191f10d62eca1 (patch)
tree9cbe2a04cd3f23c131d90d7ce8d9b203acfc614a /clang/test/Parser/cxx0x-decl.cpp
parent659d38bcd517197b212594567974686b9bb49e3f (diff)
downloadbcm5719-llvm-7696571d2b6b4d0d58de4d2b5be191f10d62eca1.tar.gz
bcm5719-llvm-7696571d2b6b4d0d58de4d2b5be191f10d62eca1.zip
Recover properly after a parse error in a static_assert declaration.
llvm-svn: 163826
Diffstat (limited to 'clang/test/Parser/cxx0x-decl.cpp')
-rw-r--r--clang/test/Parser/cxx0x-decl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx0x-decl.cpp b/clang/test/Parser/cxx0x-decl.cpp
index e97ba1ec903..13c7fbf0b01 100644
--- a/clang/test/Parser/cxx0x-decl.cpp
+++ b/clang/test/Parser/cxx0x-decl.cpp
@@ -30,3 +30,5 @@ class ExtraSemiAfterMemFn {
// pedantically warn on it
int *const const p = 0; // expected-warning {{duplicate 'const' declaration specifier}}
const const int *q = 0; // expected-warning {{duplicate 'const' declaration specifier}}
+
+static_assert(something, ""); // expected-error {{undeclared identifier}}
OpenPOWER on IntegriCloud