Beta 2.090.0

berni44 dlang at d-ecke.de
Thu Dec 26 10:20:27 UTC 2019


On Sunday, 22 December 2019 at 15:23:32 UTC, Martin Nowak wrote:
> As usual please report any bugs at
> https://issues.dlang.org

Not sure, if this is a bug, but --DRT-testmode=run-main seems to 
have no effect here.

Example:

---
import std.stdio;

unittest
{
     assert(1==1);
}

void main(string[] argv)
{
     writeln("X");
}
---

$> dmd -unittest -g -run test.d
1 unittests passed
$> dmd -unittest --DRT-testmode=run-main -g -run test.d
1 unittests passed

In both cases main is not executed. I thought, in the second one 
it should...


More information about the Digitalmars-d-announce mailing list