mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
and the PID was removed. This commit adds it back in. It also adds a basic test that would have detected this regression, and also the breakage in bug 200990. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10573
16 lines
177 B
C
16 lines
177 B
C
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
int main(void)
|
|
{
|
|
int y = 0;
|
|
int* x = calloc(1,sizeof(int));
|
|
free(x);
|
|
|
|
y += x[0];
|
|
sleep(1);
|
|
y += x[0];
|
|
|
|
return y;
|
|
}
|