llvm/test/FrontendObjC/2007-09-25-EH.m

27 lines
618 B
Mathematica
Raw Normal View History

// RUN: %llvmgcc -c -w -m64 -mmacosx-version-min=10.5 %s -o /dev/null
// XTARGET: darwin
@class NSDictionary, DSoBuffer, DSoDirectory, NSMutableArray;
@interface NSException {}
@end
@interface DSoNode {
DSoDirectory *mDirectory;
}
@end
@implementation DSoNode
- (void) _findRecordsOfTypes {
DSoBuffer *dbData;
void *recInfo;
NSMutableArray *results;
@try {
dsGetRecordEntry([dbData dsDataBuffer], (void**)&recInfo);
@try {
[results addObject:37];
} @finally {
dsDeallocRecordEntry([mDirectory dsDirRef], recInfo);
}
} @catch(NSException * exception) {
}
}