[Issue 5848] Coverage always report 0000000 for inlined function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 17 00:53:54 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5848



--- Comment #4 from kennytm at gmail.com 2011-04-17 00:50:20 PDT ---
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > What kind of textual output do you desire in this situation?
> > 
> > What do you mean?
> 
> What coverage results textual file do you want DMD to save on disk about that
> inlined() function when you compile the program with the -inline switch too?

Ideally that line should display "1", like the 2nd piece of code I've shown in
the first post. The coverage percent should be 100%, not 50%. Why would one
expect to get 0000000 when a line of code is used?

If it's not possible to get an exact count, at least it should show something
other than 0000000, and count that line as covered.

In gcov the equivalent program shows '1' in the corresponding line even with
maximum optimization (-O3). So avoiding 0000000 in most of the cases should be
possible.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list