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

          Issue ID: 16711
           Summary: unittest writefln
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: visuald
          Assignee: [email protected]
          Reporter: [email protected]

if unittest  and use writefln("%s",123),get the wrong
First-chance exception: std.format.FormatException Unterminated format
specifier: "%" at C:\D\dmd2\windows\bin\..\..\src\phobos\std\format.d(829)

win7 vs2015 visuald 0.3.34 dmd-2.072.0

import std.stdio;

unittest
{
    assert(1==1);
}

int main(string[] argv)
{
    writefln("%s",123);
    return 0;
}

--

Reply via email to