blob: 9d74d89ad918404ebeb2fc86781c8ed267f2000d [file] [log] [blame]
Bill Wendlingd9417182007-10-17 23:14:56 +00001// RUN: %llvmgcc -x objective-c -arch i386 -pipe -std=gnu99 -O2 -fexceptions -S -o - t.m | not grep Unwind_Resume
2
3#import <Foundation/Foundation.h>
4
5static NSMutableArray *anArray = nil;
6
7CFArrayRef bork(void) {
8 CFArrayRef result = NULL;
9 NSAutoreleasePool *pool = [NSAutoreleasePool new];
10 @try {
11 result = CFRetain(anArray);
12 } @catch(id any) {
13 NSLog(@"Swallowed exception %@", any);
14 }
15
16 [pool release];
17 return result;
18}