diff 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
line wrap: on
line diff
--- a/test/structinit2.d	Tue Oct 02 05:10:18 2007 +0200
+++ b/test/structinit2.d	Tue Oct 02 05:27:44 2007 +0200
@@ -6,3 +6,11 @@
     long l;
     float f;
 }
+
+void main()
+{
+    Imp i;
+    assert(i.i == 0);
+    assert(i.l == 0L);
+    assert(i.f !<>= 0.0f);
+}