summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/defaulted11.C
blob: b9bed7e0037ba929c596972172912062270221cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Core issue 901
// { dg-options "-std=c++0x" }

struct A
{
  A(); ~A();
  void operator delete (void *) = delete;
  void operator delete[] (void *) = delete;
};

int main()
{
  A* ap = new A;
  ap = new A[2];
}