Fariborz Jahanian | 66867c5 | 2010-01-12 01:22:23 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -rewrite-objc -o - %s |
2 | // rdar://7522880 | ||||
3 | |||||
4 | @interface NSException | ||||
5 | @end | ||||
6 | |||||
7 | @interface Foo | ||||
8 | @end | ||||
9 | |||||
10 | @implementation Foo | ||||
11 | - (void)bar { | ||||
12 | @try { | ||||
13 | } @catch (NSException *e) { | ||||
14 | } | ||||
15 | @catch (Foo *f) { | ||||
16 | } | ||||
17 | @catch (...) { | ||||
18 | } | ||||
19 | } | ||||
20 | @end |