blob: 9cbc52b6c22ab07b2464f61fb6d6ca4f5a0a4a3f [file] [log] [blame]
Steve Naroff20ebf8f2008-01-19 00:42:38 +00001// RUN: clang -rewrite-test %s | clang
2
Steve Naroffe12e6922008-02-01 20:02:07 +00003@interface Foo @end
Steve Naroff20ebf8f2008-01-19 00:42:38 +00004@interface GARF @end
5
Steve Naroffe12e6922008-02-01 20:02:07 +00006void foo() {
7 @try { TRY(); }
8 @catch (...) { SPLATCH(); @throw; }
9}
10
Steve Naroff20ebf8f2008-01-19 00:42:38 +000011int main()
12{
13
14@try {
15 MYTRY();
16}
17
Steve Naroffe12e6922008-02-01 20:02:07 +000018@catch (Foo* localException) {
Steve Naroff20ebf8f2008-01-19 00:42:38 +000019 MYCATCH();
20 @throw;
21}
22}
23