Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / profile / instrprof-gcov-two-objects.test
blob4080caa7fdd9a2c8f4c4c695212a9713ae5591f8
1 RUN: mkdir -p %t.d
2 RUN: cd %t.d
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
11 RUN: test -f %t
13 RUN: rm -f instrprof-shared-main.gcda instrprof-shared-lib.gcda
14 RUN: %run %t
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