[Issue 5848] Coverage always report 0000000 for inlined function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 23 09:43:00 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5848
--- Comment #6 from kennytm at gmail.com 2012-04-23 09:44:00 PDT ---
(In reply to comment #5)
> With dmd 2.059:
>
> PS E:\DigitalMars\dmd2\samples> rdmd -cov bug
> PS E:\DigitalMars\dmd2\samples> cat bug.lst
> |//import std.stdio, std.range, std.algorithm, std.string;
> |
> |import std.stdio;
> |
> |int inlined(int p, int q) {
> 1| return p+q;
> |}
> |void main() {
> 1| inlined(1, 3);
> |}
> bug.d is 100% covered
> PS E:\DigitalMars\dmd2\samples>
Please make sure you have the '-inline' flag. Test with 'dmd', not 'rdmd'.
--
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