right thing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2364
/* test child thread inheriting data */
+// ***
+//
+// Helgrind should detect an error on line 48 for this test, but it doesn't!
+//
+// ***
+
#include <pthread.h>
#include <unistd.h>
static void *t1(void *v)
{
volatile int *ip = (int *)v;
-
*ip += 44;
*ip *= 2;
-
sleep(1);
-
return 0;
}
static void *t2(void *v)
{
volatile int *ip = (int *)v;
-
*ip += 88;
*ip *= 3;
-
sleep(2);
-
return 0;
}
-XXX We expect an error on inherit.c:48
+
+