blob: ef28f587f92ace2ebce33746f48b7d45c62f6f5b [file] [log] [blame]
Bill Wendling8f200052007-10-19 18:40:53 +00001// RUN: %llvmgcc -x objective-c %s -arch i386 -pipe -std=gnu99 -O2 -fexceptions -S -o - | not grep Unwind_Resume
Bill Wendling2ee72ba2007-10-19 18:36:04 +00002#import <stdio.h>
Bill Wendling0fbee662007-10-17 23:14:56 +00003
Bill Wendling2ee72ba2007-10-19 18:36:04 +00004@interface Foo {
5 char c;
6 short s;
7 int i;
8 long l;
9 float f;
10 double d;
11}
12-(Foo*)retain;
13@end
Bill Wendling0fbee662007-10-17 23:14:56 +000014
Bill Wendling2ee72ba2007-10-19 18:36:04 +000015struct Foo *bork(Foo *FooArray) {
16 struct Foo *result = 0;
17 @try {
18 result = [FooArray retain];
19 } @catch(id any) {
20 printf("hello world\n");
21 }
Bill Wendling0fbee662007-10-17 23:14:56 +000022
Bill Wendling2ee72ba2007-10-19 18:36:04 +000023 return result;
Bill Wendling0fbee662007-10-17 23:14:56 +000024}