xref: /llvm-project/compiler-rt/test/profile/ContinuousSyncMode/image-with-no-counters.c (revision 4f2651c36361468cf35cdcdf841d3abed9d0d1cc)
1*4f2651c3SWael Yehia // REQUIRES: target={{.*(darwin|aix).*}}
27014a101SVedant Kumar 
37014a101SVedant Kumar // RUN: echo "static void dead_code(void) {}" > %t.dso.c
4*4f2651c3SWael Yehia // RUN: %clang_profgen_cont -fcoverage-mapping -O3 %shared_lib_flag -o %t.dso.dylib %t.dso.c
5*4f2651c3SWael Yehia // RUN: %clang_profgen_cont -fcoverage-mapping -O3 -o %t.exe %s %t.dso.dylib
67014a101SVedant Kumar // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe 2>&1 | count 0
77014a101SVedant Kumar // RUN: llvm-profdata show --counts --all-functions %t.profraw | FileCheck %s
87014a101SVedant Kumar 
97014a101SVedant Kumar // CHECK: Total functions: 1
107014a101SVedant Kumar 
117014a101SVedant Kumar int main() {}
12