Files
clang-p2996/clang/test/PCH/objc_stmts.h
Douglas Gregor 96c79498fb Improve the AST representation of Objective-C @try/@catch/@finally
statements. Instead of the @try having a single @catch, where all of
the @catch's were chained (using an O(n^2) algorithm nonetheless),
@try just holds an array of its @catch blocks. The resulting AST is
slightly more compact (not important) and better represents the actual
language semantics (good).

llvm-svn: 102221
2010-04-23 22:50:49 +00:00

23 lines
258 B
Objective-C

/* For use with the methods.m test */
@interface A
@end
@interface B
@end
@interface TestPCH
- (void)instMethod;
@end
@implementation TestPCH
- (void)instMethod {
@try {
} @catch(A *a) {
} @catch(B *b) {
} @catch(...) {
} @finally {
}
}
@end