annotate tests/mini/structinit.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/structinit.d@27b2f40bdb58
children
rev   line source
lindquist@1 1 module structinit;
lindquist@1 2
lindquist@1 3 import structinit2;
lindquist@1 4
lindquist@1 5 struct S
lindquist@1 6 {
lindquist@1 7 uint ui;
lindquist@1 8 float f;
lindquist@1 9 long l;
lindquist@1 10 real r;
lindquist@1 11 }
lindquist@1 12
lindquist@1 13 S adef;
lindquist@1 14
lindquist@1 15 S a = { 1, 2.0f };
lindquist@1 16 S b = { f:2.0f, l:42 };
lindquist@1 17
lindquist@1 18 Imp imp;
lindquist@1 19
lindquist@1 20 void main()
lindquist@1 21 {
lindquist@1 22 //assert(a == S.init);
lindquist@1 23 //assert(b == S(0,3.14f,0,real.init));
lindquist@1 24 }
lindquist@38 25