OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* objc/execute/next_mapping.h: Update for C++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
try-catch-6.mm
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
}