diff tests/code/struct_7.d @ 187:08b6ce45b456

Changed the way static arrays are represented Now uses [3 x i32] rather than [3 x i32]*, and when using constants they are copied before use. Also dixed a test or two
author Anders Halager <halager@gmail.com>
date Fri, 25 Jul 2008 12:53:58 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/code/struct_7.d	Fri Jul 25 12:53:58 2008 +0200
@@ -0,0 +1,11 @@
+struct A { int a; }
+A f()
+{
+    A a;
+    return a;
+}
+
+void main() {
+    A a = f();
+}
+