blob: a30a95fa35ba1f5856fecaf614ed6f32e946ff8d [file] [log] [blame]
Bill Wendling2ee72ba2007-10-19 18:36:04 +00001#import <stdio.h>
Bill Wendling0fbee662007-10-17 23:14:56 +00002
Bill Wendling2ee72ba2007-10-19 18:36:04 +00003@interface Foo {
4 char c;
5 short s;
6 int i;
7 long l;
8 float f;
9 double d;
10}
11-(Foo*)retain;
12@end
Bill Wendling0fbee662007-10-17 23:14:56 +000013
Bill Wendling2ee72ba2007-10-19 18:36:04 +000014struct Foo *bork(Foo *FooArray) {
15 struct Foo *result = 0;
16 @try {
17 result = [FooArray retain];
18 } @catch(id any) {
19 printf("hello world\n");
20 }
Bill Wendling0fbee662007-10-17 23:14:56 +000021
Bill Wendling2ee72ba2007-10-19 18:36:04 +000022 return result;
Bill Wendling0fbee662007-10-17 23:14:56 +000023}