diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-09 20:55:26 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-09 20:55:26 +0000 |
commit | a971d2410fabb093954c4119d2287ac24208ea8d (patch) | |
tree | 61c2c8b0c5447ea968a8ed3fa7ac76e446cf6e38 /test/Parser/cxx-throw.cpp | |
parent | f63eee78a3ed50a974d0963623a06888ecd4ef6b (diff) |
Push the knowledge that we are parsing a type-id/type-name further into the
parser, and use it to emit better diagnostics in cases where an identifer
can't be looked up as a type name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-throw.cpp')
-rw-r--r-- | test/Parser/cxx-throw.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Parser/cxx-throw.cpp b/test/Parser/cxx-throw.cpp index d63b6d4cae..a1be710fb5 100644 --- a/test/Parser/cxx-throw.cpp +++ b/test/Parser/cxx-throw.cpp @@ -13,3 +13,5 @@ void foo() { __extension__ throw 1; // expected-error {{expected expression}} (void)throw; // expected-error {{expected expression}} } + +void f() throw(static); // expected-error {{expected a type}} expected-error {{does not allow storage class}} |