20 lines · plain
1# Check that the coverage statistics for template functions are calculated as expected.2 3RUN: rm -rf %t4RUN: mkdir %t5RUN: cd %t6RUN: cp %p/Inputs/tmpl* .7 8RUN: llvm-cov gcov tmpl.cpp -f | FileCheck %s --check-prefix=F9RUN: llvm-cov gcov tmpl.cpp -t | FileCheck %s --check-prefix=T10 11F: Function '_Z4testILi1EEiv'12F-NEXT: Lines executed:100.00% of 113F: Function '_Z4testILi2EEiv'14F-NEXT: Lines executed:100.00% of 115 16T: -: 1:template <int N>17T-NEXT: 2: 2:int test() { return N; }18T-NEXT: -: 3:19T-NEXT: 1: 4:int main() { return test<1>() + test<2>(); }20