[llvm-bugs] [Bug 36086] New: llvm-cov: Uncovered region when evaluated at compile-time
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jan 25 05:39:28 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36086
Bug ID: 36086
Summary: llvm-cov: Uncovered region when evaluated at
compile-time
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dennis.felsing at sap.com
CC: llvm-bugs at lists.llvm.org
Code regions that can be evaluated at compile-time are shown as uncovered by
llvm-cov, for example:
if (true && true) { // second true is uncovered
return 0;
}
if (argc > 1 && strcmp("&&", "&&) == 0) { // strcmp is uncovered
return 0;
}
if (argc > 1 && (strcmp)("&&", "&&) == 0) { // strcmp is covered here because
it is done at runtime
return 0;
}
if (argc > 1 && strcmp(argv[1], "&&) == 0) { // strcmp is covered here because
it is done at runtime
return 0;
}
Instead I would expect all of the if line to be covered.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180125/28f0c476/attachment.html>
More information about the llvm-bugs
mailing list