[Issue 17403] -main switch doesn't run correctly in unittest builds when linking separately

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue May 16 15:51:05 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17403

Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow at gmail.com

--- Comment #1 from Vladimir Panteleev <thecybershadow at gmail.com> ---
I think the invocation is incorrect - you need to specify -main when linking,
not compiling:

$ dmd -c -unittest foo.d 
$ dmd -main foo.o
$ ./foo
core.exception.AssertError at foo.d(1): unittest failure

--


More information about the Digitalmars-d-bugs mailing list