]> granicus.if.org Git - clang/commitdiff
Add more tests for crashes that happend to be fixed by r229288.
authorNico Weber <nicolasweber@gmx.de>
Sun, 15 Feb 2015 07:45:39 +0000 (07:45 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sun, 15 Feb 2015 07:45:39 +0000 (07:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229289 91177308-0d34-0410-b5e6-96231b3b80d8

test/Parser/recovery.cpp

index bca9ace89e21fcb1dbb312eeb237e856c7abdc7c..2d5b518c691fe3317d9167ca62579097935a3795 100644 (file)
@@ -209,4 +209,6 @@ struct ::, struct ::; // expected-error 2 {{expected identifier}} expected-error
 enum ::, enum ::; // expected-error 2 {{expected identifier}} expected-warning {{declaration does not declare anything}}
 struct ::__super, struct ::__super; // expected-error 2 {{expected identifier}} expected-error 2 {{expected '::' after '__super'}}
 struct ::template foo, struct ::template bar; // expected-error 2 {{expected identifier}} expected-error 2 {{declaration of anonymous struct must be a definition}} expected-warning {{declaration does not declare anything}}
+struct ::foo struct::; // expected-error {{no struct named 'foo' in the global namespace}} expected-error {{expected identifier}} expected-error {{declaration of anonymous struct must be a definition}}
+class :: : {} a;  // expected-error {{expected identifier}} expected-error {{expected class name}}
 }