tsan: deflake test

llvm-svn: 204340
This commit is contained in:
Dmitry Vyukov 2014-03-20 13:27:11 +00:00
parent 1296436cbf
commit 454abc0093
1 changed files with 2 additions and 0 deletions

View File

@ -1,10 +1,12 @@
// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
int Global;
void *Thread1(void *x) {
sleep(1);
Global = 42;
return NULL;
}