1 // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
3 // Crashes on powerpc64be
4 // UNSUPPORTED: target=powerpc64{{.*}}
10 void *Thread(void *x
) {
17 pthread_create(&t
, 0, Thread
, 0);
19 pthread_join(t
, &retval
);
21 fprintf(stderr
, "Unexpected return value\n");
24 fprintf(stderr
, "PASS\n");
28 // CHECK-NOT: WARNING: ThreadSanitizer: