diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-02-15 07:45:39 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-02-15 07:45:39 +0000 |
commit | c3cd8564eb6e8582d73749358345988a960ca2cf (patch) | |
tree | 25997935bb9a2eeb7faeb26746952dc74e38eb55 /clang/test | |
parent | cfaa4cdc35c0b21fb6cef140615007f5782ae127 (diff) | |
download | bcm5719-llvm-c3cd8564eb6e8582d73749358345988a960ca2cf.tar.gz bcm5719-llvm-c3cd8564eb6e8582d73749358345988a960ca2cf.zip |
Add more tests for crashes that happend to be fixed by r229288.
llvm-svn: 229289
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Parser/recovery.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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}} } |