tsan: work around FileCheck bug with empty outputs

llvm-svn: 177715
This commit is contained in:
Dmitry Vyukov 2013-03-22 08:48:34 +00:00
parent 5d69168906
commit 2f411641fe
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}