URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [eh/] [builtin3.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// Without explicit prototype, we need to assume the builtin can
// throw for builtins that at least on one platform can throw.
// { dg-do compile }
// { dg-options "-fdump-tree-eh" }
extern void callme (void) throw();
int
bar (int i)
{
try {
__builtin_printf ("foo %d\n", i);
} catch (...) {
callme();
}
}
/* { dg-final { scan-tree-dump-times "resx" 1 "eh" } } */
/* { dg-final { cleanup-tree-dump "eh" } } */
Go to most recent revision | Compare with Previous | Blame | View Log