2009-07-20 00:44:03 +02:00
|
|
|
// RUN: %llvmgcc -m32 -x objective-c %s -pipe -std=gnu99 -O2 -fexceptions -S -o - | not grep Unwind_Resume
|
2007-10-19 20:36:04 +02:00
|
|
|
#import <stdio.h>
|
2007-10-18 01:14:56 +02:00
|
|
|
|
2007-10-19 20:36:04 +02:00
|
|
|
@interface Foo {
|
|
|
|
char c;
|
|
|
|
short s;
|
|
|
|
int i;
|
|
|
|
long l;
|
|
|
|
float f;
|
|
|
|
double d;
|
|
|
|
}
|
|
|
|
-(Foo*)retain;
|
|
|
|
@end
|
2007-10-18 01:14:56 +02:00
|
|
|
|
2007-10-19 20:36:04 +02:00
|
|
|
struct Foo *bork(Foo *FooArray) {
|
|
|
|
struct Foo *result = 0;
|
|
|
|
@try {
|
|
|
|
result = [FooArray retain];
|
|
|
|
} @catch(id any) {
|
|
|
|
printf("hello world\n");
|
|
|
|
}
|
2007-10-18 01:14:56 +02:00
|
|
|
|
2007-10-19 20:36:04 +02:00
|
|
|
return result;
|
2007-10-18 01:14:56 +02:00
|
|
|
}
|