Mercurial > projects > dstress
view run/OutOfMemory_03.d @ 564:e77e4444c170
partial metadata fix
author | thomask |
---|---|
date | Thu, 02 Jun 2005 15:42:31 +0000 |
parents | 31cca2b25cf6 |
children | fb70ca0d80ba |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Manfred Nowak <svv1999@hotmail.com> // @date@ 2005-04-23 // @uri@ news:d4a8b9$1rr3$1@digitaldaemon.com module dstress.run.OutOfMemory_03; debug import std.c.stdio; Object[] a; int main(){ int delta= 100000; while(1){ try{ a.length = a.length + delta; debug fprintf(stderr,"%d ", a.length); }catch{ debug fprintf(stderr, "Allocated array of length %d.\n", a.length); return 0; } } assert(0) }