Author: nico
Date: Sun Feb 15 01:45:39 2015
New Revision: 229289

URL: http://llvm.org/viewvc/llvm-project?rev=229289&view=rev
Log:
Add more tests for crashes that happend to be fixed by r229288.

Modified:
    cfe/trunk/test/Parser/recovery.cpp

Modified: cfe/trunk/test/Parser/recovery.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/recovery.cpp?rev=229289&r1=229288&r2=229289&view=diff
==============================================================================
--- cfe/trunk/test/Parser/recovery.cpp (original)
+++ cfe/trunk/test/Parser/recovery.cpp Sun Feb 15 01:45:39 2015
@@ -209,4 +209,6 @@ struct ::, struct ::; // 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}}
 }


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to