mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-17 18:10:31 +00:00
45211d725b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43136 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
451 B
Objective-C
19 lines
451 B
Objective-C
// RUN: %llvmgcc -x objective-c %s -arch i386 -pipe -std=gnu99 -O2 -fexceptions -S -o t.m | not grep Unwind_Resume
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
static NSMutableArray *anArray = nil;
|
|
|
|
CFArrayRef bork(void) {
|
|
CFArrayRef result = NULL;
|
|
NSAutoreleasePool *pool = [NSAutoreleasePool new];
|
|
@try {
|
|
result = CFRetain(anArray);
|
|
} @catch(id any) {
|
|
NSLog(@"Swallowed exception %@", any);
|
|
}
|
|
|
|
[pool release];
|
|
return result;
|
|
}
|