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
Bug 466762 - Add redirs for C23 free_sized() and free_aligned_sized()
[valgrind.git]
/
memcheck
/
tests
/
sized_aligned_new_delete_misaligned2.cpp
blob
3251af81f4848110da29b03e93c7743388e4782b
1
#include <new>
2
#include <cassert>
3
4
int
main
() {
5
std
::
align_val_t
misalign
(
static_cast
<
std
::
align_val_t
>(
63U
));
6
std
::
size_t
size
(
32
);
7
void
*
mem
=
operator
new
(
size
,
misalign
);
8
// should throw
9
assert
(
false
);
10
}