Fix the command line.
[oota-llvm.git] / test / FrontendObjC / 2007-10-17-SJLJExceptions.m
1 // RUN: %llvmgcc -x objective-c %s -arch i386 -pipe -std=gnu99 -O2 -fexceptions -S -o - | not grep Unwind_Resume
2
3 #import <Foundation/Foundation.h>
4
5 static NSMutableArray *anArray = nil;
6
7 CFArrayRef 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 }