John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -fobjc-exceptions -o - %s |
Fariborz Jahanian | 66867c5 | 2010-01-12 01:22:23 +0000 | [diff] [blame] | 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 |