aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-decl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-05 18:18:31 +0000
committerChris Lattner <sabre@nondot.org>2010-04-05 18:18:31 +0000
commit5c5db553b5c256d0a6f55dde7325c1c829b88e8e (patch)
treea07b859c9bba34dea0a6834b2e27baf89b0f7095 /test/Parser/cxx-decl.cpp
parent405634b215f19eec7183bd8005e34aa5a02f64a1 (diff)
fix PR6782, an accept invalid. We weren't emitting the diagnostic
returned by SetTypeSpecType. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r--test/Parser/cxx-decl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp
index c8f2c0b769..ae004ce81c 100644
--- a/test/Parser/cxx-decl.cpp
+++ b/test/Parser/cxx-decl.cpp
@@ -62,3 +62,13 @@ struct test4 {
// PR5825
struct test5 {};
::new(static_cast<void*>(0)) test5; // expected-error {{expected unqualified-id}}
+
+
+// PR6782
+template<class T>
+class Class1;
+
+class Class2 {
+} // no ;
+
+typedef Class1<Class2> Type1; // expected-error {{cannot combine with previous 'class' declaration specifier}}