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
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
obj-c++.dg
/
try-catch-6.mm
blob
e0022b299030d04cfa91544005f219223a980942
1
/* A very simple @try-@catch example. */
2
3
/* { dg-do compile } */
4
/* { dg-options "-fobjc-exceptions" } */
5
6
int foo(void) {
7
@try {
8
return 2;
9
}
10
@catch (id foo) {
11
return 1;
12
}
13
return 0;
14
}