summaryrefslogtreecommitdiff
path: root/test/Parser
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
commit3686c71ff92e4357a78993a16a27185f16ab6234 (patch)
tree086c57b4ae35b39dff648f3895b2440c5bdbd998 /test/Parser
parenta406849092567a448b6cef37df83df3c2b36f3ca (diff)
downloadclang-3686c71ff92e4357a78993a16a27185f16ab6234.tar.gz
Recover properly after a parse error in a static_assert declaration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser')
-rw-r--r--test/Parser/cxx0x-decl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Parser/cxx0x-decl.cpp b/test/Parser/cxx0x-decl.cpp
index e97ba1ec90..13c7fbf0b0 100644
--- a/test/Parser/cxx0x-decl.cpp
+++ b/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}}