annotate tests/mini/structinit2.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/structinit2.d@ee302fe07296
children
rev   line source
lindquist@1 1 module structinit2;
lindquist@1 2
lindquist@1 3 struct Imp
lindquist@1 4 {
lindquist@1 5 int i;
lindquist@1 6 long l;
lindquist@1 7 float f;
lindquist@1 8 }
lindquist@12 9
lindquist@12 10 void main()
lindquist@12 11 {
lindquist@12 12 Imp i;
lindquist@12 13 assert(i.i == 0);
lindquist@12 14 assert(i.l == 0L);
lindquist@12 15 assert(i.f !<>= 0.0f);
lindquist@12 16 }