Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / eh / builtin2.C
bloba92477455e1d7946d4c3f45f8f945460bc8eb8da
1 // Verify that if explicit prototype for builtin is present with throw(),
2 // neither the normal builtin nor __builtin_* variant can throw exceptions.
3 // { dg-do compile }
4 // { dg-options "-fdump-tree-eh" }
6 extern "C" int printf (const char *, ...) throw();
8 extern void callme (void) throw();
10 int
11 foo (int i)
13   try {
14     printf ("foo %d\n", i);
15   } catch (...) {
16     callme();
17   }
20 int
21 bar (int i)
23   try {
24     __builtin_printf ("foo %d\n", i);
25   } catch (...) {
26     callme();
27   }
30 /* { dg-final { scan-tree-dump-times "resx" 0 "eh" } } */