Mercurial > projects > dstress
view run/a/auto_19_B.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | f900501c0e18 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Bill Baxter <wbaxter@gmail.com> // @date@ 2007-02-22 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=999 // @desc@ [Issue 999] Problem with auto and nested array literals module dstress.run.a.auto_19_B; int main(){ auto foo = [[3.0],[4.0]]; if(2 != foo.length){ assert(0); } if(1 != foo[0].length){ assert(0); } if(3.0 != foo[0][0]){ assert(0); } if(1 != foo[1].length){ assert(0); } if(4.0 != foo[1][0]){ assert(0); } return 0; }