The following program:
----------------------------------
extern(C) int printf(const char*, ...);
private import std.file;
alias std.file.getcwd getcwd;
void main()
{
auto s = getcwd();
printf("%.*s\n", s.length, s.ptr);
}
--------------------------
compiled with:
dmd test -unittest
produces a 400,000+ byte object file, filled with a truly stunning quantity of functions compiled in from most of Phobos.
Comment #1 by k.hara.pg — 2015-09-03T10:54:01Z
Which version?
Comment #2 by dlang-bugzilla — 2015-09-04T10:46:28Z
Can't reproduce with 2.068 with either -m32 or -m64