projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Removed "-arch i386" by popular demand...
[oota-llvm.git]
/
test
/
FrontendObjC
/
2007-10-17-SJLJExceptions.m
1
// RUN: %llvmgcc -x objective-c %s -pipe -std=gnu99 -O2 -fexceptions -S -o - | not grep Unwind_Resume
2
#import <stdio.h>
3
4
@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
14
15
struct 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
}
22
23
return result;
24
}