[Issue 4593] (DMD 2.047) Access Violation in unittest build
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 7 11:32:07 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4593
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2010-08-07 11:32:05 PDT ---
I can't reproduce this on XP SP3, the output is fine for me:
b.d
--------------------------------
import std.stdio;
import a;
void main()
{
writeln("Hello, world!");
writeln(foo("some.path"));
}
--------------------------------
a.d
--------------------------------
import std.string;
import std.stdio;
static string foo(string path)
{
auto strs = path.split(".");
return strs.length ? strs[$ - 1] : "";
}
--------------------------------
C:\Test>dmd -oftest.exe -unittest a.d b.d
C:\Test>test
Hello, world!
path
Same thing when using a unittest block in b.d.
--
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