llvm-project/clang/test/Rewriter/rewrite-try-catch.m

19 lines
180 B
Objective-C

// RUN: clang -rewrite-test %s | clang
@interface foo @end
@interface GARF @end
int main()
{
@try {
MYTRY();
}
@catch (foo* localException) {
MYCATCH();
@throw;
}
}