Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / profile / ContinuousSyncMode / image-with-no-counters.c
blobf30e2255b2289bcf95826d895db51b2c07e24f17
1 // REQUIRES: darwin
3 // RUN: echo "static void dead_code(void) {}" > %t.dso.c
4 // RUN: %clang_profgen -fcoverage-mapping -O3 -dynamiclib -o %t.dso.dylib %t.dso.c
5 // RUN: %clang_profgen -fcoverage-mapping -O3 -o %t.exe %s %t.dso.dylib
6 // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe 2>&1 | count 0
7 // RUN: llvm-profdata show --counts --all-functions %t.profraw | FileCheck %s
9 // CHECK: Total functions: 1
11 int main() {}