blob: 8ad04c07cf514fc6d0130889656b765339d5c928 [file] [log] [blame]
Pirama Arumuga Nainar799172d2016-03-03 15:50:30 -08001// Test that verifies TSan runtime doesn't contain compiler-emitted
2// memcpy/memmove calls. It builds the binary with TSan and passes it to
3// check_memcpy.sh script.
4
5// RUN: %clangxx_tsan -O1 %s -o %t
6// RUN: llvm-objdump -d %t | FileCheck %s
7
8int main() {
9 return 0;
10}
11
12// CHECK-NOT: callq {{.*<(__interceptor_)?mem(cpy|set)>}}
13// tail calls:
14// CHECK-NOT: jmpq {{.*<(__interceptor_)?mem(cpy|set)>}}
15