diff --git a/gcc/testsuite/g++.old-deja/g++.ext/delvoid.C b/gcc/testsuite/g++.old-deja/g++.ext/delvoid.C new file mode 100644 index 00000000000..acf2f9e8b6c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.ext/delvoid.C @@ -0,0 +1,11 @@ +// Jason Merrill +// Special g++ Options: -w +// 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; +}