Mercurial > projects > dstress
view run/a/associative_array_18_A.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@ Bastiaan Veelo <Bastiaan.N.Veelo@ntnu.no> // @date@ 2005-09-04 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4931 module dstress.run.a.associative_array_18_A; interface Interface{ int test(int); } class Class : Interface{ int test(int i){ return i+1; } } int main(){ Class[Interface] aa; Class o = new Class(); aa[o] = o; return 0; }