xref: /llvm-project/compiler-rt/test/profile/instrprof-gcov-two-objects.test (revision af8205d0eb47b416b6865488056797f4162321e4)
1RUN: mkdir -p %t.d
2RUN: cd %t.d
3
4RUN: %clang --coverage -o instrprof-shared-lib.o -c %S/Inputs/instrprof-shared-lib.c
5RUN: test -f instrprof-shared-lib.gcno
6
7RUN: %clang --coverage -o instrprof-shared-main.o -c %S/Inputs/instrprof-shared-main.c
8RUN: test -f instrprof-shared-main.gcno
9
10RUN: %clang --coverage -o %t instrprof-shared-main.o instrprof-shared-lib.o
11RUN: test -f %t
12
13RUN: rm -f instrprof-shared-main.gcda instrprof-shared-lib.gcda
14RUN: %run %t
15RUN: llvm-cov gcov instrprof-shared-main.gcda
16RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-main.c.gcov %S/Inputs/instrprof-shared-main.c.gcov
17RUN: llvm-cov gcov instrprof-shared-lib.gcda
18RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-lib.c.gcov %S/Inputs/instrprof-shared-lib_in-loop.c.gcov
19