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: unassignedb...@nondot.org
Reporter: dennis.fels...@sap.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs