]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/delete2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / delete2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/delete2.C b/gcc/testsuite/g++.old-deja/g++.other/delete2.C
deleted file mode 100644 (file)
index d90def0..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-
-struct foo {
-  operator char*() const;
-};
-
-void bar(foo a) {
-  delete a; // should be accepted
-  delete[] a; // should be accepted
-  char b[1];
-  delete b; // ERROR - expecting pointer type
-  delete[] b; // ERROR - expecting pointer type
-}