blob: 5b8c62b4b639d96c98c46d3fb84603df55e79f52 [file] [log] [blame]
// 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();
void
bar (int i)
{
try {
__builtin_printf ("foo %d\n", i);
} catch (...) {
callme();
}
}
/* { dg-final { scan-tree-dump-times "resx" 1 "eh" } } */