Kostya Serebryany | 3c93122 | 2012-03-01 22:27:08 +0000 | [diff] [blame] | 1 | // RUN: %clang -target i386-unknown-unknown -fthread-sanitizer %s -S -emit-llvm -o - | FileCheck %s |
| 2 | // RUN: %clang -O1 -target i386-unknown-unknown -fthread-sanitizer %s -S -emit-llvm -o - | FileCheck %s |
| 3 | // RUN: %clang -O2 -target i386-unknown-unknown -fthread-sanitizer %s -S -emit-llvm -o - | FileCheck %s |
| 4 | // RUN: %clang -O3 -target i386-unknown-unknown -fthread-sanitizer %s -S -emit-llvm -o - | FileCheck %s |
| 5 | // Verify that -fthread-sanitizer invokes tsan instrumentation. |
| 6 | |
| 7 | int foo(int *a) { return *a; } |
| 8 | // CHECK: __tsan_init |