8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/delete7.C
Jason Merrill c3e899c125 call.c (build_op_delete_call): See through ARRAY_TYPEs.
* call.c (build_op_delete_call): See through ARRAY_TYPEs.

        * call.c (build_new_function_call): Lose space before paren in
        error message.
        (build_new_method_call): Likewise.

        * typeck2.c (build_m_component_ref): Propagate quals from datum.

From-SVN: r38287
2000-12-15 10:43:11 -05:00

18 lines
238 B
C

// Test that we call a class-specific vector op delete.
#include <new>
int r = 1;
struct A
{
void operator delete[](void *p) { r = 0; ::operator delete (p); }
};
int main ()
{
A (*p)[2] = new A[2][2];
delete [] p;
return r;
}