summaryrefslogtreecommitdiffstats
path: root/test/Driver/exceptions.m
blob: 7d85fe30aefaa10e23636c106d139a2081d74cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %clang -ccc-host-triple 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;
}
OpenPOWER on IntegriCloud