summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/new32.C
blob: f82785749ce41a18d3765aebeb8178725e4dded8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/48873

#include <new>

struct D {
private:
  ~D();
};

template<class T>
T& create();

void f()
{
  D* dp = new (((void*) 0)) D(create<D>()); // #
}