| Anders Carlsson | e9b801f | 2011-02-22 01:52:06 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| Anders Carlsson | da4b7cf | 2011-02-19 23:53:54 +0000 | [diff] [blame] | 2 | |
| 3 | void f() { | ||||
| 4 | @throw @"Hello"; // expected-error {{cannot use '@throw' with Objective-C exceptions disabled}} | ||||
| 5 | } | ||||
| 6 | |||||
| 7 | void g() { | ||||
| 8 | @try { // expected-error {{cannot use '@try' with Objective-C exceptions disabled}} | ||||
| 9 | f(); | ||||
| 10 | } @finally { | ||||
| 11 | |||||
| 12 | } | ||||
| 13 | } | ||||