Bug 12361 – Coverage doesn't work on the functions mixin-ed from another module

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-13T19:58:54Z
Last change time
2024-12-13T18:18:16Z
Keywords
backend, wrong-code
Assigned to
No Owner
Creator
jiki
Moved to GitHub: dmd#18794 →

Comments

Comment #0 by jiki — 2014-03-13T19:58:54Z
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 # more convenient >rdmd -cov moda.d // 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 } }
Comment #1 by jiki — 2014-03-13T20:09:27Z
Using the -allinst flag makes no difference.
Comment #2 by robert.schadek — 2024-12-13T18:18:16Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18794 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB