xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/tsan.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang     -target x86_64-unknown-linux -fsanitize=thread %s -S -emit-llvm -o - | FileCheck %s
2*f4a2713aSLionel Sambuc // RUN: %clang -O1 -target x86_64-unknown-linux -fsanitize=thread %s -S -emit-llvm -o - | FileCheck %s
3*f4a2713aSLionel Sambuc // RUN: %clang -O2 -target x86_64-unknown-linux -fsanitize=thread %s -S -emit-llvm -o - | FileCheck %s
4*f4a2713aSLionel Sambuc // RUN: %clang -O3 -target x86_64-unknown-linux -fsanitize=thread %s -S -emit-llvm -o - | FileCheck %s
5*f4a2713aSLionel Sambuc // RUN: %clang     -target x86_64-unknown-linux -fsanitize=thread  %s -S -emit-llvm -o - | FileCheck %s
6*f4a2713aSLionel Sambuc // Verify that -fsanitize=thread invokes tsan instrumentation.
7*f4a2713aSLionel Sambuc 
foo(int * a)8*f4a2713aSLionel Sambuc int foo(int *a) { return *a; }
9*f4a2713aSLionel Sambuc // CHECK: __tsan_init
10