Files
qt-creator/tests/valgrind/memcheck/testapps/overlap/main.cpp

10 lines
118 B
C++
Raw Normal View History

#include <string.h>
int main()
{
int *i = new int[10];
memcpy(i, &i[1], 20);
delete[] i;
return 0;
}