diff test/structs5.d @ 25:12fd8ce55d9c trunk

[svn r29] * Fixed structs inside struct literals
author lindquist
date Thu, 04 Oct 2007 10:22:56 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/structs5.d	Thu Oct 04 10:22:56 2007 +0200
@@ -0,0 +1,23 @@
+module structs5;
+
+void main()
+{
+    {S s = S();}
+    {T t = T(1);}
+    {U u = U();}
+}
+
+struct S
+{
+}
+
+struct T
+{
+    int i;
+}
+
+struct U
+{
+    S s;
+    long l;
+}