www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12361] New: Coverage doesn't work on the functions mixin-ed from another module

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12361

           Summary: Coverage doesn't work on the functions mixin-ed from
                    another module
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: jiki red.email.ne.jp


--- Comment #0 from jiki red.email.ne.jp 2014-03-13 19:58:54 PDT ---
You create the following two modules.
After you compile and run, the generated coverage data miss the last one.

dmd -cov moda.d modb.d
moda

// moda.d import modb; void main() { local(); test(); } mixin My!(); mixin Foreign!(); mixin template My() { int local() { return 0; // OK: counted in moda.lst } } // modb.d mixin template Foreign() { int test() { return 0; // NG: never counted in modb.lst } } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 13 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12361



--- Comment #1 from jiki red.email.ne.jp 2014-03-13 20:09:27 PDT ---
Using the -allinst flag makes no difference.

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