repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Add extra parenthesis around || statements to pacify compiler.
[llvm/msp430.git]
/
test
/
FrontendObjC
/
2007-10-17-SJLJExceptions.m
blob
4bea6e98a8b24f06b21fe81b6a1cd19d375b7cde
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
}