summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/new21.C
blob: 5797ea981c0797578e8e09e728725e67f8b22e06 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/32251

struct A {
  A();
  void operator delete(void *, ...);
};

void foo () {
  new A; // { dg-warning "deallocation" }
}