comparison 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
comparison
equal deleted inserted replaced
543:4b941e2f6d4f 544:19e36f020f57
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Michael Butscher <mbutscher@gmx.de>
6 // @date@ 2005-05-15
7 // @uri@ news:MPG.1cf1a08e35a16a9b989684@news.digitalmars.com
8
9 module dstress.run.a.array_initialization_16;
10
11 static int bigarray[100][100];
12
13 int main(){
14 assert(bigarray.length==100);
15 assert(bigarray[0].length==100);
16
17 int counter=0;
18
19 for(int i=0; i< 100; i++){
20 for (int j=0; j<100; j++){
21 bigarray[i][j]=counter;
22 assert(bigarray[i][j]==counter++);
23 }
24 }
25
26 assert(counter==100*100);
27
28 return 0;
29 }
30