Vedant Kumar | 8eae1f9 | 2017-09-11 23:32:30 +0000 | [diff] [blame] | 1 | // 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 Kumar | 71bc1af | 2017-09-11 21:31:32 +0000 | [diff] [blame] | 2 | // RUN: FileCheck %s -input-file %t.out -check-prefix=LINE |
Vedant Kumar | 8eae1f9 | 2017-09-11 23:32:30 +0000 | [diff] [blame] | 3 | // RUN: FileCheck %s -input-file %t.err.out -check-prefix=HIGHLIGHT |
Vedant Kumar | 71bc1af | 2017-09-11 21:31:32 +0000 | [diff] [blame] | 4 | |
| 5 | |
| 6 | int 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 |