Mercurial > projects > dstress
changeset 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 | df193e7c4e41 |
children | dbaec0ee5d40 |
files | run/a/array_initialization_26_F.d |
diffstat | 1 files changed, 27 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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@ <mariusmuja@gmail.com> +// @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; +}