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 struct A { A (); ~A (); int i; };
15 printf ("foo %d\n", a.i);
22 __builtin_printf ("foo %d\n", a.i);
25 /* { dg-final { scan-tree-dump-times "resx" 2 "eh" } } */
26 /* { dg-final { cleanup-tree-dump "eh" } } */