xref: /llvm-project/clang/test/CodeGen/tsan-instrprof-atomic.c (revision 611ce24114aac1befac6e65d85b0daa721cf71fd)
1 // RUN: %clang_cc1 %s -emit-llvm -fprofile-instrument=clang -fprofile-update=atomic -o - | FileCheck %s
2 // RUN: %clang %s -S -emit-llvm -fprofile-generate -fprofile-update=atomic -o - | FileCheck %s
3 // RUN: %clang -O3 %s -S -emit-llvm -fprofile-generate -fprofile-update=atomic -o - | FileCheck %s
4 
5 // CHECK: define {{.*}}@foo
6 // CHECK-NOT: load {{.*}}foo
7 // CHECK: ret void
foo(void)8 void foo(void) {}
9