# HG changeset patch # User thomask # Date 1203666879 0 # Node ID 930dbd51f0cce3e36167fcb27f07bdf3e9b65916 # Parent df193e7c4e41dda380173ca676bd11feae6cf72d [Issue 1689] New: Segfaults for nested array allocation with GDC 2007-11-24 http://d.puremagic.com/issues/show_bug.cgi?id=1689 diff -r df193e7c4e41 -r 930dbd51f0cc run/a/array_initialization_26_F.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/array_initialization_26_F.d Fri Feb 22 07:54:39 2008 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ +// @date@ 2007-11-24 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1689 +// @desc@ [Issue 1689] New: Segfaults for nested array allocation with GDC + +module dstress.run.a.array_initialization_26_F; + +int main(){ + float[][] bar; + bar = new float[][](2,3); + + if(2 != bar.length){ + assert(0); + } + if(3 != bar[0].length){ + assert(0); + } + if(3 != bar[1].length){ + assert(0); + } + + return 0; +}