repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
delete-array-1.C
blob
95fa7d445d4cc98fb43d207ba8f099b93037bb96
1
// PR c++/29185
2
3
int a [1];
4
struct S { int a [1]; } s;
5
6
void foo (S *p)
7
{
8
delete a; // { dg-warning "deleting array|-Wfree-nonheap-object" }
9
delete s.a; // { dg-warning "deleting array|-Wfree-nonheap-object" }
10
delete p->a; // { dg-warning "deleting array|-Wfree-nonheap-object" }
11
}