diff options
-rw-r--r-- | compiler-rt/lib/tsan/lit_tests/race_on_speculative_load.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/lit_tests/race_on_speculative_load.cc b/compiler-rt/lib/tsan/lit_tests/race_on_speculative_load.cc index 0c7dbb568ab..31f0e4f2a31 100644 --- a/compiler-rt/lib/tsan/lit_tests/race_on_speculative_load.cc +++ b/compiler-rt/lib/tsan/lit_tests/race_on_speculative_load.cc @@ -1,8 +1,9 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t +// RUN: %clangxx_tsan -O1 %s -o %t && %t | FileCheck %s // Regtest for https://code.google.com/p/thread-sanitizer/issues/detail?id=40 // This is a correct program and tsan should not report a race. #include <pthread.h> #include <unistd.h> +#include <stdio.h> int g; __attribute__((noinline)) int foo(int cond) { @@ -21,4 +22,6 @@ int main() { pthread_create(&t, 0, Thread1, 0); g = 1; pthread_join(t, 0); + printf("PASS\n"); + // CHECK: PASS } |