Debian Codegraph @

gcc/testsuite/obj-c++.dg/try-catch-6.mm

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 }