xref: /llvm-project/llvm/test/tools/llvm-cov/showTabsHTML.cpp (revision e3c1fb8b124246343f20b98f4035b61dd3ccd7df)
10ef31b79SYing Yi // RUN: llvm-profdata merge -o %t.profdata %S/Inputs/showTabsHTML.proftext
2*e3c1fb8bSVedant Kumar // RUN: llvm-cov show %S/Inputs/showTabsHTML.covmapping -format html -instr-profile %t.profdata -path-equivalence=/tmp,%S %s | FileCheck %s --strict-whitespace
30ef31b79SYing Yi 
main(int argc,char ** argv)40ef31b79SYing Yi int main(int argc, char ** argv) {
5*e3c1fb8bSVedant Kumar 	(void) "This tab starts at column 0";              // CHECK: >  (void) "This tab starts at column 0";
6*e3c1fb8bSVedant Kumar   (void) "	This tab starts at column 10";           // CHECK: >  (void) "  This tab starts at column 10";
7*e3c1fb8bSVedant Kumar   (void) "This 	 tab starts at column 15";           // CHECK: >  (void) "This   tab starts at column 15";
80ef31b79SYing Yi 
90ef31b79SYing Yi   return 0;
100ef31b79SYing Yi }
110ef31b79SYing Yi 
129edfeac9SSean Eveson // RUN: llvm-cov show %S/Inputs/showTabsHTML.covmapping -format html -tab-size=3 -instr-profile %t.profdata -path-equivalence=/tmp,%S %s | FileCheck -check-prefix=CHECK-TABSIZE %s
130ef31b79SYing Yi 
14*e3c1fb8bSVedant Kumar // CHECK-TABSIZE: >  (void) "This tab starts at column 0";
15*e3c1fb8bSVedant Kumar // CHECK-TABSIZE: >  (void) "   This tab starts at column 10";
16*e3c1fb8bSVedant Kumar // CHECK-TABSIZE: >  (void) "This    tab starts at column 15";
17