Mercurial > projects > dstress
view run/o/odd_bug_03_B.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 9dcac8d4e97f |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @desc@ vararg / char[] / foreach code generation bug // @author@ zwang <nehzgnaw@gmail.com> // @date@ 2005-05-29 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4171 // @WARNING@ direct use of Phobos module dstress.run.o.odd_bug_03_B; import std.format; const char[] culprit; void f(...){ char[] s; void putc(dchar c){ s ~= c; } std.format.doFormat(&putc, _arguments, _argptr); assert(s=="mystery"); } int main(){ f("mystery"); return 0; }