Debian Codegraph @

clang/test/SemaObjC/no-objc-exceptions.m

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 void f(void) {
4 @throw @"Hello"; // expected-error {{cannot use '@throw' with Objective-C exceptions disabled}}
5 }
6
7 void g(void) {
8 @try { // expected-error {{cannot use '@try' with Objective-C exceptions disabled}}
9 f();
10 } @finally {
11
12 }
13 }