Mercurial > projects > dstress
view run/a/array_initialization_21_E.d @ 1556:ca435c6f02c8
DMD-1.014: associative array literals
author | thomask |
---|---|
date | Mon, 23 Jul 2007 18:46:06 +0000 |
parents | b8c0195059d9 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ clayasaurus <clayasaurus@gmail.com> // @date@ 2005-12-25 // @uri@ news:http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5910 module dstress.run.a.array_initialization_21_E; const int MAX_PARTICLES = 20000; struct Particle{ float a; float b; float c; float d; } Particle particles[MAX_PARTICLES]; int main(){ if(particles.length != MAX_PARTICLES){ assert(0); } return 0; }