Mercurial > projects > dstress
annotate run/OutOfMemory_03.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | b8c0195059d9 |
children |
rev | line source |
---|---|
472 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Manfred Nowak <svv1999@hotmail.com> | |
564 | 6 // @date@ 2005-04-23 |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3771 |
472 | 8 |
9 module dstress.run.OutOfMemory_03; | |
10 | |
11 debug import std.c.stdio; | |
12 | |
13 Object[] a; | |
14 | |
15 int main(){ | |
16 int delta= 100000; | |
17 while(1){ | |
18 try{ | |
19 a.length = a.length + delta; | |
20 debug fprintf(stderr,"%d ", a.length); | |
21 }catch{ | |
22 debug fprintf(stderr, "Allocated array of length %d.\n", a.length); | |
23 return 0; | |
24 } | |
25 } | |
755
fb70ca0d80ba
updated resutls of DMD-0.093 - 0.101, 0.104, 0.121, 0.140
thomask
parents:
564
diff
changeset
|
26 assert(0); |
472 | 27 } |
28 |