blob: 87cb6eb299d7c44ac7d6d4aa92c04afc792cb5f3 [file] [log] [blame]
Vedant Kumar8eae1f92017-09-11 23:32:30 +00001// RUN: llvm-cov show -instr-profile %S/Inputs/ifdef.profdata %S/Inputs/ifdef.covmapping -dump -path-equivalence=/tmp,%S %s > %t.out 2> %t.err.out
Vedant Kumar71bc1af2017-09-11 21:31:32 +00002// RUN: FileCheck %s -input-file %t.out -check-prefix=LINE
Vedant Kumar8eae1f92017-09-11 23:32:30 +00003// RUN: FileCheck %s -input-file %t.err.out -check-prefix=HIGHLIGHT
Vedant Kumar71bc1af2017-09-11 21:31:32 +00004
5
6int main() {
7 if (0) { // LINE: [[@LINE]]|{{ +}}1|
8#if 0 // LINE-NEXT: [[@LINE]]|{{ +}}|
9#endif // LINE-NEXT: [[@LINE]]|{{ +}}|
10 }
11 return 0;
12}
13
14// HIGHLIGHT: Highlighted line [[@LINE-7]], 10 -> ?
15// HIGHLIGHT-NEXT: Highlighted line [[@LINE-7]], 1 -> 1
16// HIGHLIGHT-NEXT: Highlighted line [[@LINE-6]], 1 -> 4