Mercurial > projects > dstress
view run/a/array_initialization_30_B.d @ 1572:169ba9b6cb5d
[Issue 1013] Invalid code generated for naked functions with (u)long arguments
<madou@madou.org>
2007-03-01
http://d.puremagic.com/issues/show_bug.cgi?id=1013
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:18:50 +0000 |
parents | f3f715978184 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ David Friedman <dvdfrdmn@users.sf.net> // @date@ 2006-12-23 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=734 // @desc@ [Issue 734] New: Multidimensional arrays use incorrect initializer module dstress.run.a.array_initialization_30_B; typedef int Xint = 42; int main(){ auto x = new Xint[3][4]; x.length = 200; if(x.length != 200){ assert(0); } foreach(i; x) { if(i.length != 3){ assert(0); } foreach (j; i){ if(j != j.init){ assert(0); } } } return 0; }