blob: 95fa7d445d4cc98fb43d207ba8f099b93037bb96 [file] [log] [blame]
// PR c++/29185
int a [1];
struct S { int a [1]; } s;
void foo (S *p)
{
delete a; // { dg-warning "deleting array|-Wfree-nonheap-object" }
delete s.a; // { dg-warning "deleting array|-Wfree-nonheap-object" }
delete p->a; // { dg-warning "deleting array|-Wfree-nonheap-object" }
}