mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Test to make sure we don't generate unwind info for non-64-bit Objective-C.
llvm-svn: 43102
This commit is contained in:
parent
7d21c85cca
commit
0a8dfb51cd
18
test/FrontendObjC/2007-10-17-SJLJExceptions.m
Normal file
18
test/FrontendObjC/2007-10-17-SJLJExceptions.m
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user