Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / tsan / Linux / check_memcpy.c
blob21480564ff6ce06bd29c0efdcafe373b0695d185
1 // Test that verifies TSan runtime doesn't contain compiler-emitted
2 // memcpy/memmove calls. It builds the binary with TSan and check's
3 // its objdump.
5 // This could fail if using a static libunwind because that static libunwind
6 // could be uninstrumented and contain memcpy/memmove calls not intercepted by
7 // tsan.
8 // REQUIRES: shared_unwind, x86_64-target-arch
10 // RUN: %clang_tsan -O1 %s -o %t
11 // RUN: llvm-objdump -d -l %t | FileCheck --implicit-check-not="{{(callq|jmpq) .*<(__interceptor_.*)?mem(cpy|set|move)>}}" %s
13 int main() { return 0; }