Commit 087aec88 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 43b8b753
...@@ -5,10 +5,12 @@ static void foo(int i) { ...@@ -5,10 +5,12 @@ static void foo(int i) {
printf("%d\n", i); printf("%d\n", i);
} }
int main(void) { int main(int argc, char *argv[]) {
int arg;
int i; int i;
if (0) for (i = 1; i < argc; i++) {
i = 42; arg = atoi(argv[i]);
foo(i); }
foo(arg);
return 0; return 0;
} }
...@@ -7,10 +7,12 @@ ...@@ -7,10 +7,12 @@
int x; int x;
static void *starta(void* ignore __attribute__((__unused__))) { static void *starta(void* ignore __attribute__((__unused__))) {
if (verbose) printf("%s %d\n", __FUNCTION__, x);
x++; x++;
return 0; return 0;
} }
static void *startb(void* ignore __attribute__((__unused__))) { static void *startb(void* ignore __attribute__((__unused__))) {
if (verbose) printf("%s %d\n", __FUNCTION__, x);
x++; x++;
return 0; 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