annotate tests/mini/foreach6.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/foreach6.d@0c77619e803b
children 30b42a283c8e
rev   line source
lindquist@51 1 module foreach6;
lindquist@51 2
lindquist@51 3 struct S
lindquist@51 4 {
lindquist@51 5 long l;
lindquist@51 6 float f;
lindquist@51 7 }
lindquist@51 8
lindquist@51 9 void main()
lindquist@51 10 {
lindquist@52 11 S[4] arr = void;
lindquist@51 12 foreach(i,v;arr) {
lindquist@52 13 v = S(i, i*2.5);
lindquist@51 14 }
lindquist@51 15 }