summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ext/delvoid.C
blob: 60f114b31b84f15c19514308fc9a3437146325d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do run  }
// { dg-options "-w" }
// Jason Merrill <jason@redhat.com>
// Test for deleting a void pointer, which the standard says is undefined,
// but which is used by several free C++ programs.

void *p;

int main ()
{
  delete [] p;
}