mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-17 03:07:06 +00:00
ce60e8423e
automatically. Use -S with llvm-gcc rather than -c, so tests can work when llvm-gcc is really dragonegg (which can output IR with -S but not -c). Yes, dragonegg supports objective-c (poorly though). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120163 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
630 B
Objective-C
28 lines
630 B
Objective-C
// RUN: %llvmgcc -S -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) {
|
|
}
|
|
}
|
|
|
|
|