xref: /llvm-project/compiler-rt/test/profile/instrprof-gcov-switch.test (revision 0f9f2473613519b18004158835914bc25fcb2b40)
1ae43a27fSMarco CastelluccioRUN: mkdir -p %t.d
2ae43a27fSMarco CastelluccioRUN: cd %t.d
3ae43a27fSMarco Castelluccio
4*0f9f2473SFangrui SongRUN: %clang --coverage -o %t %S/Inputs/instrprof-gcov-switch1.c -dumpdir ./
5ae43a27fSMarco CastelluccioRUN: test -f instrprof-gcov-switch1.gcno
6ae43a27fSMarco CastelluccioRUN: rm -f instrprof-gcov-switch1.gcda
7ae43a27fSMarco CastelluccioRUN: %run %t
8ae43a27fSMarco CastelluccioRUN: llvm-cov gcov instrprof-gcov-switch1.gcda
9ae43a27fSMarco CastelluccioRUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-gcov-switch1.c.gcov %S/Inputs/instrprof-gcov-switch1.c.gcov
10ae43a27fSMarco Castelluccio
11*0f9f2473SFangrui SongRUN: %clang --coverage -o %t %S/Inputs/instrprof-gcov-switch2.c -dumpdir ./
12ae43a27fSMarco CastelluccioRUN: test -f instrprof-gcov-switch2.gcno
13ae43a27fSMarco CastelluccioRUN: rm -f instrprof-gcov-switch2.gcda
14ae43a27fSMarco CastelluccioRUN: %run %t
15ae43a27fSMarco CastelluccioRUN: llvm-cov gcov instrprof-gcov-switch2.gcda
16ae43a27fSMarco CastelluccioRUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-gcov-switch2.c.gcov %S/Inputs/instrprof-gcov-switch2.c.gcov
17