comparison run/a/array_initialization_26_F.d @ 1581:930dbd51f0cc

[Issue 1689] New: Segfaults for nested array allocation with GDC <mariusmuja@gmail.com> 2007-11-24 http://d.puremagic.com/issues/show_bug.cgi?id=1689
author thomask
date Fri, 22 Feb 2008 07:54:39 +0000
parents
children
comparison
equal deleted inserted replaced
1580:df193e7c4e41 1581:930dbd51f0cc
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ <mariusmuja@gmail.com>
6 // @date@ 2007-11-24
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1689
8 // @desc@ [Issue 1689] New: Segfaults for nested array allocation with GDC
9
10 module dstress.run.a.array_initialization_26_F;
11
12 int main(){
13 float[][] bar;
14 bar = new float[][](2,3);
15
16 if(2 != bar.length){
17 assert(0);
18 }
19 if(3 != bar[0].length){
20 assert(0);
21 }
22 if(3 != bar[1].length){
23 assert(0);
24 }
25
26 return 0;
27 }