4 RUN: %clang --coverage -o instrprof-shared-lib.o -c %S/Inputs/instrprof-shared-lib.c
5 RUN: test -f instrprof-shared-lib.gcno
7 RUN: %clang --coverage -o instrprof-shared-main.o -c %S/Inputs/instrprof-shared-main.c
8 RUN: test -f instrprof-shared-main.gcno
10 RUN: %clang --coverage -o %t instrprof-shared-main.o instrprof-shared-lib.o
13 RUN: rm -f instrprof-shared-main.gcda instrprof-shared-lib.gcda
15 RUN: llvm-cov gcov instrprof-shared-main.gcda
16 RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-main.c.gcov %S/Inputs/instrprof-shared-main.c.gcov
17 RUN: llvm-cov gcov instrprof-shared-lib.gcda
18 RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-lib.c.gcov %S/Inputs/instrprof-shared-lib_in-loop.c.gcov