Files
clang-p2996/clang/test/Import/objc-try-catch/Inputs/F.m
Raphael Isemann 121ecfd22c Re-land [ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt
Lands r340468 again, but this time we mark the test as unsupported on Windows
because it seems that try/catch crashes CodeGen at the moment.

llvm-svn: 340541
2018-08-23 16:06:30 +00:00

29 lines
305 B
Objective-C

@interface Exception
@end
@interface OtherException
@end
void f() {
@try {
Exception *e;
@throw e;
}
@catch (Exception *varname) {
}
@finally {
}
@try {
}
@catch (Exception *varname1) {
@throw;
}
@catch (OtherException *varname2) {
}
@try {
}
@finally {
}
}