forked from OSchip/llvm-project
tsan: work around FileCheck bug with empty outputs
llvm-svn: 177715
This commit is contained in:
parent
5d69168906
commit
2f411641fe
|
@ -1,6 +1,7 @@
|
|||
// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void *Thread(void *x) {
|
||||
sleep(10);
|
||||
|
@ -10,6 +11,7 @@ void *Thread(void *x) {
|
|||
int main() {
|
||||
pthread_t t;
|
||||
pthread_create(&t, 0, Thread, 0);
|
||||
printf("OK\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue