From c3cd8564eb6e8582d73749358345988a960ca2cf Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 15 Feb 2015 07:45:39 +0000 Subject: Add more tests for crashes that happend to be fixed by r229288. llvm-svn: 229289 --- clang/test/Parser/recovery.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/test/Parser/recovery.cpp b/clang/test/Parser/recovery.cpp index bca9ace89e2..2d5b518c691 100644 --- a/clang/test/Parser/recovery.cpp +++ b/clang/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}} } -- cgit v1.2.3