Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / compiler-rt / test / profile / ContinuousSyncMode / image-with-no-counters.c
blob4313ad30b7273f0d37d45a53ab7faeec4df897cb
1 // REQUIRES: target={{.*(darwin|aix).*}}
3 // RUN: echo "static void dead_code(void) {}" > %t.dso.c
4 // RUN: %clang_profgen_cont -fcoverage-mapping -O3 %shared_lib_flag -o %t.dso.dylib %t.dso.c
5 // RUN: %clang_profgen_cont -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() {}