summaryrefslogtreecommitdiff
path: root/test/Parser/cxx-decl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-11-19 22:47:36 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-11-19 22:47:36 +0000
commitfc764b6d50aba62a6dbf736a763197e0805d83ed (patch)
treeb2a8ed3c29ffd900aa68a567b97eb591eabc8185 /test/Parser/cxx-decl.cpp
parentd46c8e0d67c7a20b5da330af3a36c47a5f0c0484 (diff)
downloadclang-fc764b6d50aba62a6dbf736a763197e0805d83ed.tar.gz
PR9547: If we're parsing a simple-declaration that contains a tag definition,
and we see an ill-formed declarator that would probably be well-formed if the tag definition were just missing a semicolon, use that as the diagnostic instead of producing some other mysterious error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r--test/Parser/cxx-decl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp
index 06272504bc..8c4c6175f5 100644
--- a/test/Parser/cxx-decl.cpp
+++ b/test/Parser/cxx-decl.cpp
@@ -108,9 +108,9 @@ template<class T>
class Class1;
class Class2 {
-} // no ;
+} // expected-error {{expected ';' after class}}
-typedef Class1<Class2> Type1; // expected-error {{cannot combine with previous 'class' declaration specifier}}
+typedef Class1<Class2> Type1;
// rdar : // 8307865
struct CodeCompleteConsumer {