On Mon, 16 Aug 2010 11:22:50 -0700, Walter Bright wrote: > Mike Linford wrote: >> On Mon, 16 Aug 2010 10:26:46 -0700, Walter Bright wrote: >> >>> Mike Linford wrote: >>>> The unit test does not get run when compiled as: dmd -lib mylib.d dmd >>>> main.d mylib.a >>>> >>>> But does get run when compiled as >>>> dmd main.d mylib.d >>> >>> You need to compile with -unittest to run them. >> >> Also, the following creates a library that does run the unit tests: dmd >> -c -unittest mylib.d >> ar -rc mylib.a mylib.o >> dmd -unittest main.d mylib.a > > Right, that's working as it should.
Is it working as it should by not including the unit tests with: dmd -unittest -lib mylib.d ? -- Mike Linford
