summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx0x-decl.cpp
diff options
context:
space:
mode:
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