Steve Naroff | 20ebf8f | 2008-01-19 00:42:38 +0000 | [diff] [blame] | 1 | // RUN: clang -rewrite-test %s | clang |
2 | |||||
Steve Naroff | e12e692 | 2008-02-01 20:02:07 +0000 | [diff] [blame] | 3 | @interface Foo @end |
Steve Naroff | 20ebf8f | 2008-01-19 00:42:38 +0000 | [diff] [blame] | 4 | @interface GARF @end |
5 | |||||
Steve Naroff | e12e692 | 2008-02-01 20:02:07 +0000 | [diff] [blame] | 6 | void foo() { |
7 | @try { TRY(); } | ||||
8 | @catch (...) { SPLATCH(); @throw; } | ||||
9 | } | ||||
10 | |||||
Steve Naroff | 20ebf8f | 2008-01-19 00:42:38 +0000 | [diff] [blame] | 11 | int main() |
12 | { | ||||
13 | |||||
14 | @try { | ||||
15 | MYTRY(); | ||||
16 | } | ||||
17 | |||||
Steve Naroff | e12e692 | 2008-02-01 20:02:07 +0000 | [diff] [blame] | 18 | @catch (Foo* localException) { |
Steve Naroff | 20ebf8f | 2008-01-19 00:42:38 +0000 | [diff] [blame] | 19 | MYCATCH(); |
20 | @throw; | ||||
21 | } | ||||
22 | } | ||||
23 |