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
2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.bob
/
delete1.C
blob
9de2a227a923659be615a803eaf9801b70c294ff
1
// { dg-do run }
2
// prms-id: 7330
3
#include <stddef.h>
4
int size = 0;
5
6
struct X {
7
int x;
8
void *operator new[](size_t sz) throw() {
9
size = sz;
10
return 0;
11
}
12
void operator delete[] (void *vp) { ::operator delete(vp); }
13
};
14
int main()
15
{
16
X (*px) [10];
17
18
px = new X[5][10];
19
20
delete [] px;
21
22
return 0;
23
}