clang/test/Rewriter/rewrite-eh.m
raw| 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 |