Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / compat / eh / new1_main.C
bloba557c9d18147616f59f4751056721eebe978fbcd
1 // PR c++/5757
2 // Test that when a constructor throws in a new-expression, we pass the
3 // right pointer to operator delete.
5 // Split into pieces for binary compatibility testing October 2002
7 // Explicit { dg-require-effective-target exceptions_enabled } so that dependent tests don't turn UNRESOLVED for '-fno-exceptions'.
9 extern void new1_x (void);
11 int
12 main ()
14   new1_x ();