repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
obj-c++.dg
/
try-catch-7.mm
blob
e322672aeeaaa5c7b186560383929aea6ce58cc2
1
/* { dg-do compile } */
2
/* { dg-options "-fobjc-exceptions" } */
3
4
#include <objc/Object.h>
5
6
int main (int argc, const char * argv[]) {
7
Object * pool = [Object new];
8
int a;
9
10
if ( 1 ) {
11
@try {
12
a = 1;
13
}
14
@catch (Object *e) {
15
a = 2;
16
}
17
@finally {
18
a = 3;
19
}
20
}
21
22
[pool free];
23
return 0;
24
}