annotate run/init_01.d @ 329:b25c950a5e9f
array.init
Jarrett Billingsley <kb3ctd2@yahoo.com>
2005-02-24
news:cvm7j3$2lro$1@digitaldaemon.com
author |
thomask |
date |
Fri, 18 Mar 2005 07:49:35 +0000 |
parents |
|
children |
b8c0195059d9 |
rev |
line source |
329
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Jarrett Billingsley <kb3ctd2@yahoo.com>
|
|
6 // @date@ 2005-02-24
|
|
7 // @uri@ news:cvm7j3$2lro$1@digitaldaemon.com
|
|
8
|
|
9 module dstress.run.init_01;
|
|
10
|
|
11 int main(){
|
|
12 static int[2] array;
|
|
13 array[0]=1;
|
|
14 array[1]=2;
|
|
15 assert(array.init==int.init);
|
|
16 assert(array[0]==1);
|
|
17 assert(array[1]==2);
|
|
18 return 0;
|
|
19 }
|