Mercurial > projects > dstress
view run/a/array_initialization_20_B.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 | b8c0195059d9 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn> // @date@ 2005-12-03 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5731 module dstress.run.a.array_initialization_20_B; typedef byte X = 4; int main(){ X[] array; array.length = 2; array[] = 3; array.length = 3; if(array[0] != 3){ assert(0); } if(array[1] != 3){ assert(0); } if(array[2] != 4){ assert(0); } return 0; }