annotate tests/mini/structinit2.d @ 1651:cb960b882ca3 tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents 1bb99290e03a
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 }