https://issues.dlang.org/show_bug.cgi?id=22730
Issue ID: 22730
Summary: master: "dmd -i" doesn't include unit tests from
imported modules
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
// main.d
import mod;
void main() { assert(0, "main() called"); }
// mod.d
unittest { assert(1); }
% dmd -i -unittest -run main.d
[email protected](2): main() called
with dmd 2.098.1, the output is "1 modules passed unittests"
according to bisect, this was caused by:
https://github.com/dlang/dmd/pull/13224
--