mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 05:55:40 +00:00
70d87440dd
be run on darwin, but I have no way of checking... llvm-svn: 43945
28 lines
630 B
Objective-C
28 lines
630 B
Objective-C
// RUN: %llvmgcc -c -w -m64 -mmacosx-version-min=10.5 %s -o /dev/null
|
|
// XFAIL: *
|
|
// 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) {
|
|
}
|
|
}
|
|
|
|
|