view run/a/array_initialization_16.d @ 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
children 7e8e5013a030
line wrap: on
line source

// $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;
}