1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
28 lines
341 B
Objective-C
28 lines
341 B
Objective-C
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -
|
|
|
|
@interface Foo @end
|
|
@interface GARF @end
|
|
|
|
void foo() {
|
|
@try { TRY(); }
|
|
@catch (...) { SPLATCH(); @throw; }
|
|
}
|
|
|
|
int main()
|
|
{
|
|
|
|
@try {
|
|
MYTRY();
|
|
}
|
|
|
|
@catch (Foo* localException) {
|
|
MYCATCH();
|
|
@throw;
|
|
}
|
|
|
|
// no catch clause
|
|
@try { }
|
|
@finally { }
|
|
}
|
|
|