diff test/structinit.d @ 1:c53b6e3fe49a trunk

[svn r5] Initial commit. Most things are very rough.
author lindquist
date Sat, 01 Sep 2007 21:43:27 +0200
parents
children 27b2f40bdb58
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/structinit.d	Sat Sep 01 21:43:27 2007 +0200
@@ -0,0 +1,24 @@
+module structinit;
+
+import structinit2;
+
+struct S
+{
+    uint ui;
+    float f;
+    long l;
+    real r;
+}
+
+S adef;
+
+S a = { 1, 2.0f };
+S b = { f:2.0f, l:42 };
+
+Imp imp;
+
+void main()
+{
+    //assert(a == S.init);
+    //assert(b == S(0,3.14f,0,real.init));
+}