2008-03-27 06:28:40 +08:00
|
|
|
// RUN: clang -rewrite-test %s -o=-
|
2008-01-19 08:42:38 +08:00
|
|
|
|
2008-02-02 04:02:07 +08:00
|
|
|
@interface Foo @end
|
2008-01-19 08:42:38 +08:00
|
|
|
@interface GARF @end
|
|
|
|
|
2008-02-02 04:02:07 +08:00
|
|
|
void foo() {
|
|
|
|
@try { TRY(); }
|
|
|
|
@catch (...) { SPLATCH(); @throw; }
|
|
|
|
}
|
|
|
|
|
2008-01-19 08:42:38 +08:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
|
|
|
|
@try {
|
|
|
|
MYTRY();
|
|
|
|
}
|
|
|
|
|
2008-02-02 04:02:07 +08:00
|
|
|
@catch (Foo* localException) {
|
2008-01-19 08:42:38 +08:00
|
|
|
MYCATCH();
|
|
|
|
@throw;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|