1 // Verify that if explicit prototype for builtin is present with throw(),
2 // neither the normal builtin nor __builtin_* variant can throw exceptions.
4 // { dg-options "-fdump-tree-eh" }
6 extern "C" int printf (const char *, ...) throw();
8 struct A { A (); ~A (); int i; };
14 printf ("foo %d\n", a.i);
21 __builtin_printf ("foo %d\n", a.i);
24 /* { dg-final { scan-tree-dump-times "resx" 0 "eh" } } */
25 /* { dg-final { cleanup-tree-dump "eh" } } */