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