2010-11-25 21:46:07 +00:00
|
|
|
// RUN: %llvmgcc -S -w -m64 -mmacosx-version-min=10.5 %s -o /dev/null
|
2007-11-09 13:50:25 +00:00
|
|
|
// XFAIL: *
|
2007-11-08 22:26:46 +00:00
|
|
|
// XTARGET: darwin
|
2007-09-27 18:02:47 +00:00
|
|
|
@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) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|