758
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
|
|
6 // @date@ 2005-12-03
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5731
|
758
|
8
|
|
9 module dstress.run.a.array_initialization_20_B;
|
|
10
|
|
11 typedef byte X = 4;
|
|
12
|
|
13 int main(){
|
|
14 X[] array;
|
|
15 array.length = 2;
|
|
16 array[] = 3;
|
|
17 array.length = 3;
|
|
18
|
899
|
19 if(array[0] != 3){
|
|
20 assert(0);
|
|
21 }
|
1089
|
22
|
899
|
23 if(array[1] != 3){
|
|
24 assert(0);
|
|
25 }
|
1089
|
26
|
899
|
27 if(array[2] != 4){
|
|
28 assert(0);
|
|
29 }
|
758
|
30
|
|
31 return 0;
|
|
32 }
|