Debian Codegraph @

gcc/testsuite/g++.dg/compat/eh/new1_main.C

raw
1 // PR c++/5757
2 // Test that when a constructor throws in a new-expression, we pass the
3 // right pointer to operator delete.
4
5 // Split into pieces for binary compatibility testing October 2002
6
7 // Explicit { dg-require-effective-target exceptions_enabled } so that dependent tests don't turn UNRESOLVED for '-fno-exceptions'.
8
9 extern void new1_x (void);
10
11 int
12 main ()
13 {
14 new1_x ();
15 }