repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git]
/
memcheck
/
tests
/
sized_delete.cpp
blob
24379d1a7e3f7833c6f184e614682d155c3cbbc2
1
class
MyClass
{
2
int
i
;
3
4
};
5
6
int
main
() {
7
MyClass
*
myClass
=
new
MyClass
();
8
delete
myClass
;
9
MyClass
*
myClass5
=
new
MyClass
[
5
];
10
operator
delete
[](
myClass5
,
5U
*
sizeof
(
MyClass
));
11
//delete [] myClass5;
12
}