summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/eh/new1_main.C
blob: ee4cad8e50d4d381ba2904596e63d41371daaf3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/5757
// Test that when a constructor throws in a new-expression, we pass the
// right pointer to operator delete.

// Split into pieces for binary compatibility testing October 2002

extern void new1_x (void);

int
main ()
{
  new1_x ();
}