xref: /llvm-project/clang/test/Rewriter/rewrite-eh.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  -fobjc-exceptions -o - %s
2
3@interface NSException
4@end
5
6@interface Foo
7@end
8
9@implementation Foo
10- (void)bar {
11    @try {
12    } @catch (NSException *e) {
13    }
14    @catch (Foo *f) {
15    }
16    @catch (...) {
17    }
18}
19@end
20