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

Reply via email to