Commit 90d968d0 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3973 see if intel inspector can find races in the helgrind1 test refs[t:3973]

git-svn-id: file:///svn/toku/tokudb@35064 c7de825b-a66e-492c-adef-691d508d4ae1
parent a9ee3851
......@@ -5,10 +5,12 @@ static void foo(int i) {
printf("%d\n", i);
}
int main(void) {
int main(int argc, char *argv[]) {
int arg;
int i;
if (0)
i = 42;
foo(i);
for (i = 1; i < argc; i++) {
arg = atoi(argv[i]);
}
foo(arg);
return 0;
}
......@@ -7,10 +7,12 @@
int x;
static void *starta(void* ignore __attribute__((__unused__))) {
if (verbose) printf("%s %d\n", __FUNCTION__, x);
x++;
return 0;
}
static void *startb(void* ignore __attribute__((__unused__))) {
if (verbose) printf("%s %d\n", __FUNCTION__, x);
x++;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment