blob: 4b382d982318abfc06aabecdd38578301501e473 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// 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" } } */
|