From: Nico Weber Date: Sun, 15 Feb 2015 07:45:39 +0000 (+0000) Subject: Add more tests for crashes that happend to be fixed by r229288. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dddcd7129233476dff0ed4699c21909957fd08b2;p=clang Add more tests for crashes that happend to be fixed by r229288. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229289 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Parser/recovery.cpp b/test/Parser/recovery.cpp index bca9ace89e..2d5b518c69 100644 --- a/test/Parser/recovery.cpp +++ b/test/Parser/recovery.cpp @@ -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}} }