diff test/structs6.d @ 30:881158a93592 trunk

[svn r34] * Fixed passing a struct literal as function argument
author lindquist
date Thu, 04 Oct 2007 14:15:54 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/structs6.d	Thu Oct 04 14:15:54 2007 +0200
@@ -0,0 +1,15 @@
+module structs6;
+
+struct S
+{
+    float f;
+}
+
+void func(S s)
+{
+}
+
+void main()
+{
+    func(S());
+}