Bug499183 - FreeBSD: differences in avx-vmovq output
[valgrind.git] / memcheck / tests / freebsd / delete_sized_mismatch.cpp
blobfe8a7fd050691883ffccb7a2647b88da26395530
1 // mismatches in the parent directory has a size
2 // mismatch, but only with GCC, hence a testcase that
3 // explicitly has delete size mismatches
5 #include <new>
6 #include <cassert>
7 #include "valgrind.h"
9 int main()
11 std::size_t size(32);
12 std::size_t badsize(33);
14 void *mem = nullptr;
16 mem = operator new(size);
17 operator delete(mem, badsize);
19 mem = operator new[](size);
20 operator delete[](mem, badsize);