diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
commit | 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 (patch) | |
tree | 02a1ac369cb734d0abfa5000dd86e5b7797e6a74 /test/CodeGen/tsan-instrprof-atomic.c | |
parent | c7e70c433efc6953dc3888b9fbf9f3512d7da2b0 (diff) |
Diffstat (limited to 'test/CodeGen/tsan-instrprof-atomic.c')
-rw-r--r-- | test/CodeGen/tsan-instrprof-atomic.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/tsan-instrprof-atomic.c b/test/CodeGen/tsan-instrprof-atomic.c new file mode 100644 index 0000000000000..9519cb7eb8ed6 --- /dev/null +++ b/test/CodeGen/tsan-instrprof-atomic.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 %s -emit-llvm -fprofile-instrument=clang -fsanitize=thread -o - | FileCheck %s + +// CHECK: define {{.*}}@foo +// CHECK-NOT: load {{.*}}foo +// CHECK: ret void +void foo() {} |