<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Some GCNO/GCDA in test/tools/llvm-cov/Inputs/ are not up to date"
href="https://bugs.llvm.org/show_bug.cgi?id=38228">38228</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Some GCNO/GCDA in test/tools/llvm-cov/Inputs/ are not up to date
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>profile
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cdenizet@mozilla.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>For example with clang++-7 and llvm-cov-7 (debian) I get for
range_based_for.cpp:
File 'range_based_for.cpp'
Lines executed:100.00% of 3
range_based_for.cpp:creating 'range_based_for.cpp.gcov'
-: 0:Source:range_based_for.cpp
-: 0:Graph:range_based_for.gcno
-: 0:Data:range_based_for.gcda
-: 0:Runs:1
-: 0:Programs:1
-: 1:// Make sure that compiler-added local variables (whose line
number is zero)
-: 2:// don't crash llvm-cov.
-: 3:
-: 4:// We need shell for cd
-: 5:// REQUIRES: shell
-: 6:
-: 7:// RUN: rm -rf %t
-: 8:// RUN: mkdir %t
-: 9:// RUN: cd %t
-: 10:// RUN: cp %s %p/Inputs/range_based_for.gc* .
-: 11:
-: 12:// RUN: llvm-cov gcov range_based_for.cpp | FileCheck %s
--check-prefix=STDOUT
-: 13:// STDOUT: File 'range_based_for.cpp'
-: 14:// STDOUT: Lines executed:100.00% of 5
-: 15:// STDOUT: range_based_for.cpp:creating
'range_based_for.cpp.gcov'
-: 16:
-: 17:// RUN: FileCheck %s --check-prefix=GCOV <
%t/range_based_for.cpp.gcov
-: 18:// GCOV: -: 0:Runs:1
-: 19:// GCOV: -: 0:Programs:1
-: 20:
-: 21:int main(int argc, const char *argv[]) { // GCOV: 1:
[[@LINE]]:int main(
1: 22: int V[] = {1, 2}; // GCOV: 1:
[[@LINE]]: int V[]
8: 23: for (int &I : V) { // GCOV: 10:
[[@LINE]]: for (
-: 24: } // GCOV: 2:
[[@LINE]]: }
1: 25: return 0; // GCOV: 1:
[[@LINE]]: return
-: 26:} // GCOV: -:
[[@LINE]]:}
-: 27:
-: 28:// llvm-cov doesn't work on big endian yet
-: 29:// XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc
I think each test should compile itself to be sure to have correct gcno/gcda.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>