[llvm-bugs] [Bug 35490] New: llvm-cov: Wrong coverage with multiple binaries and shared code

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 30 23:51:18 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35490

            Bug ID: 35490
           Summary: llvm-cov: Wrong coverage with multiple binaries and
                    shared code
           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

Created attachment 19501
  --> https://bugs.llvm.org/attachment.cgi?id=19501&action=edit
run.sh

Even with differently named functions the combined coverage seems wrong. In the
attached example I would expect w() in w.hpp to be covered.

If the implementation of w() is changed to 

    if (i == 0) {
        std::cout << "foo" << std::endl;
    }

There is a warning from llvm-cov:

warning: 1 functions have mismatched data

But in the attached example llvm-cov does not warn and shows wrong coverage for
w() instead.

-- 
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/20171201/6fc96b41/attachment.html>


More information about the llvm-bugs mailing list