Mercurial > projects > dstress
view run/a/array_initialization_30_B.d @ 1573:81b51faeeefe
[Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
<d@brian.codekitchen.net>
2007-04-27
http://d.puremagic.com/issues/show_bug.cgi?id=1191
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:19:08 +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; }