aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-decl.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2012-08-28 20:55:40 +0000
committerAaron Ballman <aaron@aaronballman.com>2012-08-28 20:55:40 +0000
commitc828620a03b20835a376f6f456a72e44599f4f87 (patch)
tree58b4cb1bb4448d8661c99181be47c34f8cd4aa15 /test/Parser/cxx-decl.cpp
parent827eeb63614309bafac9d77a5a3a7ca81f1e4751 (diff)
Splitting the duplicated decl spec extension warning into two: one is an ExtWarn and the other a vanilla warning. This addresses PR13705, where const char const * wouldn't warn unless -pedantic was specified under the right conditions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r--test/Parser/cxx-decl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp
index 30ac2794ab..290b947de2 100644
--- a/test/Parser/cxx-decl.cpp
+++ b/test/Parser/cxx-decl.cpp
@@ -1,5 +1,7 @@
// RUN: %clang_cc1 -verify -fsyntax-only -triple i386-linux -pedantic %s
+const char const *x10; // expected-warning {{duplicate 'const' declaration specifier}}
+
int x(*g); // expected-error {{use of undeclared identifier 'g'}}
struct Type {