[llvm-commits] [llvm] r43102 - /llvm/trunk/test/FrontendObjC/2007-10-17-SJLJExceptions.m
Bill Wendling
isanbard at gmail.com
Wed Oct 17 16:14:58 PDT 2007
Author: void
Date: Wed Oct 17 18:14:56 2007
New Revision: 43102
URL: http://llvm.org/viewvc/llvm-project?rev=43102&view=rev
Log:
Test to make sure we don't generate unwind info for non-64-bit Objective-C.
Added:
llvm/trunk/test/FrontendObjC/2007-10-17-SJLJExceptions.m
Added: llvm/trunk/test/FrontendObjC/2007-10-17-SJLJExceptions.m
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendObjC/2007-10-17-SJLJExceptions.m?rev=43102&view=auto
==============================================================================
--- llvm/trunk/test/FrontendObjC/2007-10-17-SJLJExceptions.m (added)
+++ llvm/trunk/test/FrontendObjC/2007-10-17-SJLJExceptions.m Wed Oct 17 18:14:56 2007
@@ -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;
+}
More information about the llvm-commits
mailing list