tsan: deflake another test

llvm-svn: 197965
This commit is contained in:
Dmitry Vyukov 2013-12-24 07:49:33 +00:00
parent 703a45616c
commit d8540f7e82
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
#include <pthread.h>
#include <unistd.h>
int X;
volatile int X;
void *Thread1(void *x) {
sleep(1);
X = 42;
X = 66;
X = 78;