Bug 466762 - Add redirs for C23 free_sized() and free_aligned_sized()
[valgrind.git] / memcheck / tests / sized_aligned_new_delete_misaligned2.cpp
blob3251af81f4848110da29b03e93c7743388e4782b
1 #include <new>
2 #include <cassert>
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);