OSDN Git Service

PR testsuite/25241
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / delete2.C
index 1c8312e..1d0554f 100644 (file)
@@ -8,6 +8,6 @@ void bar(foo a) {
   delete a; // should be accepted
   delete[] a; // should be accepted
   char b[1];
-  delete b; // { dg-error "" } expecting pointer type
-  delete[] b; // { dg-error "" } expecting pointer type
+  delete b; // { dg-warning "deleting array" } expecting pointer type
+  delete[] b; // { dg-warning "deleting array" } expecting pointer type
 }