URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [obj-c++.dg/] [try-catch-6.mm] - Rev 12
Compare with Previous | Blame | View Log
/* A very simple @try-@catch example. */
/* { dg-do compile } */
/* { dg-options "-fobjc-exceptions" } */
int foo(void) {
@try {
return 2;
}
@catch (id foo) {
return 1;
}
return 0;
}