Fix the clang-wpa example.
[clang.git] / test / Rewriter / rewrite-eh.m
blob5bc80b55093ffb9edebf380de3df3385c1e0e6c3
1 // RUN: %clang_cc1 -rewrite-objc -o - %s
2 // rdar://7522880
4 @interface NSException
5 @end
7 @interface Foo
8 @end
10 @implementation Foo
11 - (void)bar {
12     @try {
13     } @catch (NSException *e) {
14     }
15     @catch (Foo *f) {
16     }
17     @catch (...) {
18     }
20 @end