annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1581
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
1 // $HeadURL$
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
2 // $Date$
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
3 // $Author$
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
4
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
5 // @author@ <mariusmuja@gmail.com>
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
6 // @date@ 2007-11-24
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1689
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
8 // @desc@ [Issue 1689] New: Segfaults for nested array allocation with GDC
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
9
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
10 module dstress.run.a.array_initialization_26_F;
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
11
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
12 int main(){
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
13 float[][] bar;
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
14 bar = new float[][](2,3);
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
15
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
16 if(2 != bar.length){
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
17 assert(0);
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
18 }
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
19 if(3 != bar[0].length){
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
20 assert(0);
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
21 }
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
22 if(3 != bar[1].length){
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
23 assert(0);
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
24 }
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
25
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
26 return 0;
930dbd51f0cc [Issue 1689] New: Segfaults for nested array allocation with GDC
thomask
parents:
diff changeset
27 }