[Issue 11358] New: debug import and getUnittests do not mix

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 25 15:58:43 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11358

           Summary: debug import and getUnittests do not mix
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dbdavidson at yahoo.com


--- Comment #0 from Daniel Davidson <dbdavidson at yahoo.com> 2013-10-25 15:58:41 PDT ---
The following code will segfault when run with:
dmd -main -unittest c.d
However it runs fine with
dmd -main -unittest -debug c.d

import std.typetuple;
import std.stdio;
debug import std.datetime;
unittest { writeln("In Test!!"); }
mixin("alias mod = " ~ __MODULE__ ~ ";");
alias tests = TypeTuple!(__traits(getUnitTests, mod));
static this() {
  writeln("Done");
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list