annotate test/structinit2.d @ 12:ee302fe07296 trunk

[svn r16] * Updated all tests to have a main * Updated runalltests to both compile and run the tests
author lindquist
date Tue, 02 Oct 2007 05:27:44 +0200
parents c53b6e3fe49a
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 }