Test to make sure we don't generate unwind info for non-64-bit Objective-C.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2007-10-17 23:14:56 +00:00
parent fa4710427f
commit d9417188f3

View File

@ -0,0 +1,18 @@
// RUN: %llvmgcc -x objective-c -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;
}