Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 1 | // 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 | |||||
8 | int 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 |