1 // Verify that if explicit prototype for builtin is present without throw(),
2 // both the normal builtin and __builtin_* variant are expected to be
3 // able to throw exceptions.
5 // { dg-options "-fdump-tree-eh" }
7 extern "C" int printf (const char *, ...);
9 extern void callme (void) throw();
15 printf ("foo %d\n", i);
25 __builtin_printf ("foo %d\n", i);
31 /* { dg-final { scan-tree-dump-times "resx" 2 "eh" } } */