Mercurial > projects > dstress
view run/a/array_initialization_23_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 | 33178712ec71 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Anders F Börklund <afb@algonet.se> // @date@ 2006-02-19 // @uri@ news:dt8eo8$5ol$1@digitaldaemon.com module dstress.run.a.array_initialization_23_B; int main(){ double[] a; a.length = 1; if(a[0] <>= 0.0f){ assert(0); } a[0] = 2.1; a.length = 2; if(a[0] != 2.1){ assert(0); } if(a[1] <>= 0.0f){ assert(0); } return 0; }