mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
#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
This commit is contained in:
parent
a9ee385197
commit
90d968d02d
2 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue