1 // RUN: llvm-cov show %S/Inputs/highlightedRanges.covmapping -instr-profile %S/Inputs/highlightedRanges.profdata -dump -path-equivalence=/tmp,%S %s 2>&1 | FileCheck %s -check-prefixes=TEXT,SHARED
5 int i
= 0; // SHARED: Highlighted line [[@LINE]], 3 ->
6 } // SHARED: Highlighted line [[@LINE]], 1 -> 2
12 --x
; // SHARED: Highlighted line [[@LINE]], 7 ->
14 int i
= 0; // SHARED: Highlighted line [[@LINE]], 5 ->
15 } // SHARED: Highlighted line [[@LINE]], 1 -> 4
21 if (x
) { // SHARED: Highlighted line [[@LINE]], 10 ->
22 x
= 0; // SHARED: Highlighted line [[@LINE]], 1 ->
23 } else { // SHARED: Highlighted line [[@LINE]], 1 -> 4
27 // SHARED: Highlighted line [[@LINE+1]], 26 ->
28 for (int i
= 0; i
< 0; ++i
) { // SHARED: Highlighted line [[@LINE]], 31 ->
29 x
= 1; // SHARED: Highlighted line [[@LINE]], 1 ->
30 } // SHARED: Highlighted line [[@LINE]], 1 -> 4
34 : x
- 1; // SHARED: Highlighted line [[@LINE]], 16 -> 21
35 x
= x
> 10 ? x
+ // SHARED: Highlighted line [[@LINE]], 16 ->
36 1 // SHARED: Highlighted line [[@LINE]], 1 -> 17
47 // RUN: llvm-cov show %S/Inputs/highlightedRanges.covmapping -instr-profile %S/Inputs/highlightedRanges.profdata -format html -dump -path-equivalence=/tmp,%S %s 2>&1 | FileCheck %s -check-prefixes=HTML,SHARED