[llvm-commits] [llvm] r43184 - /llvm/trunk/test/FrontendObjC/2007-10-17-SJLJExceptions.m
Bill Wendling
isanbard at gmail.com
Fri Oct 19 11:36:04 PDT 2007
Author: void
Date: Fri Oct 19 13:36:04 2007
New Revision: 43184
URL: http://llvm.org/viewvc/llvm-project?rev=43184&view=rev
Log:
Remove the Foundation.h file because not everyone has that.
Modified:
llvm/trunk/test/FrontendObjC/2007-10-17-SJLJExceptions.m
Modified: 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=43184&r1=43183&r2=43184&view=diff
==============================================================================
--- llvm/trunk/test/FrontendObjC/2007-10-17-SJLJExceptions.m (original)
+++ llvm/trunk/test/FrontendObjC/2007-10-17-SJLJExceptions.m Fri Oct 19 13:36:04 2007
@@ -1,18 +1,23 @@
-// RUN: %llvmgcc -x objective-c %s -arch i386 -pipe -std=gnu99 -O2 -fexceptions -S -o - | not grep Unwind_Resume
+#import <stdio.h>
-#import <Foundation/Foundation.h>
-
-static NSMutableArray *anArray = nil;
+ at interface Foo {
+ char c;
+ short s;
+ int i;
+ long l;
+ float f;
+ double d;
+}
+-(Foo*)retain;
+ at end
-CFArrayRef bork(void) {
- CFArrayRef result = NULL;
- NSAutoreleasePool *pool = [NSAutoreleasePool new];
- @try {
- result = CFRetain(anArray);
- } @catch(id any) {
- NSLog(@"Swallowed exception %@", any);
- }
+struct Foo *bork(Foo *FooArray) {
+ struct Foo *result = 0;
+ @try {
+ result = [FooArray retain];
+ } @catch(id any) {
+ printf("hello world\n");
+ }
- [pool release];
- return result;
+ return result;
}
More information about the llvm-commits
mailing list