xref: /aosp_15_r20/external/compiler-rt/test/tsan/Linux/check_memcpy.cc (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
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 
main()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 
16