xref: /llvm-project/clang/test/Driver/exceptions.m (revision 65d83ba34378b8e740c5203fe46a9c50d2aeb862)
1// RUN: %clang -target x86_64-apple-darwin11 \
2// RUN:   -fsyntax-only -fno-exceptions %s
3
4void f1(void) {
5  @throw @"A";
6}
7
8void f0(void) {
9  @try {
10    f1();
11  } @catch (id x) {
12    ;
13  }
14}
15
16int main(void) {
17  f0();
18  return 0;
19}
20