new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 22 Jun 2000 20:51:42 +0000 (16:51 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 22 Jun 2000 20:51:42 +0000 (16:51 -0400)
From-SVN: r34651

gcc/testsuite/g++.old-deja/g++.ext/delvoid.C [new file with mode: 0644]

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 (file)
index 0000000..acf2f9e
--- /dev/null
@@ -0,0 +1,11 @@
+// Jason Merrill <jason@redhat.com>
+// 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;
+}