summaryrefslogtreecommitdiffstats
path: root/clang/test/Import/objc-try-catch/Inputs/F.m
blob: 5b8b67549b33ee96a3f52ada393315eea0cf6e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@interface Exception
@end
@interface OtherException
@end

void f() {
  @try {
    Exception *e;
    @throw e;
  }
  @catch (Exception *varname) {
  }
  @finally {
  }

  @try {
  }
  @catch (Exception *varname1) {
    @throw;
  }
  @catch (OtherException *varname2) {
  }

  @try {
  }
  @finally {
  }
}
OpenPOWER on IntegriCloud