aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/exceptions.m
blob: 90c9bb58e66139ed99423673b78974bf7c85b438 (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-darwin11 \
// RUN:   -fsyntax-only -fno-exceptions %s

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

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

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