Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / delete2.C
blob1c8312e49f663bd487de1ab8144a5f4e0803e95a
1 // { dg-do assemble  }
3 struct foo {
4   operator char*() const;
5 };
7 void bar(foo a) {
8   delete a; // should be accepted
9   delete[] a; // should be accepted
10   char b[1];
11   delete b; // { dg-error "" } expecting pointer type
12   delete[] b; // { dg-error "" } expecting pointer type