Mercurial > projects > dstress
view compile/a/array_initialization_33_C.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | a3141f24cfac |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ david <davidl@126.com> // @date@ 2007-03-20 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1072 // @desc@ [Issue 1072] this code should run as the same as previous bug code , but dmd av here module dstress.compile.a.array_initialization_33_C; char[] hello(){ char[] result=""; while(false){ result ~= `abc`; } return result; } static assert("" == hello());