summaryrefslogtreecommitdiff
path: root/clang/test/Driver/exceptions.m
blob: 9b747bb84d19732ec592945cd818e8818ee59610 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %clang -target x86_64-apple-darwin9 \
// RUN:   -fsyntax-only -fno-exceptions %s

void f1() {
  @throw @"A";
}

void f0() {
  @try {
    f1();
  } @catch (id x) {
    ;
  }
}

int main() {
  f0();
  return 0;
}