a30a95fa35ba1f5856fecaf614ed6f32e946ff8d
[oota-llvm.git] / test / FrontendObjC / 2007-10-17-SJLJExceptions.m
1 #import <stdio.h>
2
3 @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
13
14 struct 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   }
21
22   return result;
23 }