785
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ clayasaurus <clayasaurus@gmail.com>
|
|
6 // @date@ 2005-12-25
|
1489
|
7 // @uri@ news:http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5910
|
785
|
8
|
|
9 module dstress.run.a.array_initialization_21_E;
|
|
10
|
|
11 const int MAX_PARTICLES = 20000;
|
|
12
|
|
13 struct Particle{
|
|
14 float a;
|
|
15 float b;
|
|
16 float c;
|
|
17 float d;
|
|
18 }
|
|
19
|
|
20 Particle particles[MAX_PARTICLES];
|
|
21
|
|
22 int main(){
|
1086
|
23 if(particles.length != MAX_PARTICLES){
|
|
24 assert(0);
|
|
25 }
|
785
|
26 return 0;
|
|
27 }
|