xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjC/no-objc-exceptions.m (revision b5e2faaaaf60a8b9a02f8d72f64caa56a87eb312)
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3void f() {
4  @throw @"Hello"; // expected-error {{cannot use '@throw' with Objective-C exceptions disabled}}
5}
6
7void g() {
8  @try { // expected-error {{cannot use '@try' with Objective-C exceptions disabled}}
9    f();
10  } @finally {
11
12  }
13}
14