blob: d31458c726cb8fcaf8f4081306d580a6a07db465 [file] [log] [blame]
void f ()
{
int a[1];
delete (a); // { dg-warning "11:deleting array" }
bool b;
delete (b); // { dg-error "11:type .bool. argument" }
void g ();
delete (g); // { dg-error "11:cannot delete a function" }
void* p;
delete (p); // { dg-warning "11:deleting .void*." }
}