clang/test/CodeGen/tsan-instrprof-atomic.c
raw| 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 |
| 8 | void foo(void) {} |