changeset 544:19e36f020f57

reserved size for bigarray in the data segment too small Michael Butscher <mbutscher@gmx.de> 2005-05-15 news:MPG.1cf1a08e35a16a9b989684@news.digitalmars.com
author thomask
date Tue, 17 May 2005 16:10:49 +0000
parents 4b941e2f6d4f
children 7b5efee9d724
files reporter.txt run/a/array_initialization_16.d
diffstat 2 files changed, 31 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/reporter.txt	Tue May 17 15:26:54 2005 +0000
+++ b/reporter.txt	Tue May 17 16:10:49 2005 +0000
@@ -40,6 +40,7 @@
 Lars Ivar Igesund	<larsivar@igesund.net>
 Lionello Lunesu		<lionello.lunesu@crystalinter.remove.com>
 Lukas Pinkowski		<Lukas.Pinkowski@web.de>
+Michael Butscher	<mbutscher@gmx.de>
 Miguel Ferreira Simões	<Kobold@netcabo.pt>
 Mike Swieton		<mike@swieton.net>
 Mike Parker		<aldacron71@yahoo.com>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/a/array_initialization_16.d	Tue May 17 16:10:49 2005 +0000
@@ -0,0 +1,30 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Michael Butscher <mbutscher@gmx.de>
+// @date@	2005-05-15
+// @uri@	news:MPG.1cf1a08e35a16a9b989684@news.digitalmars.com
+
+module dstress.run.a.array_initialization_16;
+
+static int bigarray[100][100];
+
+int main(){
+	assert(bigarray.length==100);
+	assert(bigarray[0].length==100);
+
+	int counter=0;
+
+	for(int i=0; i< 100; i++){
+		for (int j=0; j<100; j++){
+			bigarray[i][j]=counter;
+			assert(bigarray[i][j]==counter++);
+		}
+	}
+
+	assert(counter==100*100);
+
+	return 0;
+}
+