mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
seem to be simply duplication of the x86 instruction set tests into the addrcheck and helgrind trees. I'm not sure what this duplication achieves. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3264
17 lines
248 B
C
17 lines
248 B
C
#include <stdlib.h>
|
|
#include "../memcheck.h"
|
|
|
|
/*
|
|
Live 0-sized blocks were being reported as leaked.
|
|
*/
|
|
int main()
|
|
{
|
|
void *volatile foo = malloc(0);
|
|
|
|
//printf("&foo=%p foo=%p\n", &foo, foo);
|
|
VALGRIND_DO_LEAK_CHECK;
|
|
|
|
free(foo);
|
|
return 0;
|
|
}
|