1 debug(1) import std.stdio;
2 const int anything = -1000; // Line #2
SomeFunc(dchar[]pText,out int pStopPosn)3 dchar[] SomeFunc( dchar[] pText, out int pStopPosn)
4 {
5     if (pText.length == 0)
6         pStopPosn = 0;
7     else
8         pStopPosn = -1;
9     debug(1) writefln("DEBUG: using '%s' we get %d", pText, pStopPosn);
10     return pText.dup;
11 }
12 
main(char[][]pArgs)13 int main(char[][] pArgs)
14 {
15     int sp;
16 
17     SomeFunc("123", sp);
18     debug(1) writefln("DEBUG: got %d", sp);
19     assert(sp == -1);
20 
21     SomeFunc("", sp);
22 //    if (sp != 0){} // Line #22
23     debug(1) writefln("DEBUG: got %d", sp);
24     assert(sp == -1);
25     return 0;
26 }
27 
28