| 1 | // REQUIRES: target={{.*(darwin|aix).*}} |
|---|---|
| 2 | |
| 3 | // RUN: echo "static void dead_code(void) {}" > %t.dso.c |
| 4 | // RUN: %clang_profgen=%t.profraw -fprofile-continuous -fcoverage-mapping -O3 %shared_lib_flag -o %t.dso.dylib %t.dso.c |
| 5 | // RUN: %clang_profgen=%t.profraw -fprofile-continuous -fcoverage-mapping -O3 -o %t.exe %s %t.dso.dylib |
| 6 | // RUN: %run %t.exe 2>&1 | count 0 |
| 7 | // RUN: llvm-profdata show --counts --all-functions %t.profraw | FileCheck %s |
| 8 | |
| 9 | // CHECK: Total functions: 1 |
| 10 | |
| 11 | int main() {} |
| 12 |
