repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
delete2.C
blob
1d0554f2d95b00e64b8d3681048e197b5b1d9dba
1
// { dg-do assemble }
2
3
struct foo {
4
operator char*() const;
5
};
6
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-warning "deleting array" } expecting pointer type
12
delete[] b; // { dg-warning "deleting array" } expecting pointer type
13
}