summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/delete1.C
blob: 698b127714a633541d7f5e21cd5b18fc8a4fc188 (plain)
1
2
3
4
5
6
7
// PR c++/19811

class C; // { dg-error "forward" }

void foo(void *p) {
  delete [] ((C*)p) ; // { dg-error "" }
}