☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
obj-c++.dg
/
try-catch-6.mm
☽
☼
gcc/testsuite/obj-c++.dg/try-catch-6.mm
code
plain
raw
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
}