1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
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 | } |
14 |