changeset 625:7949bb4c1618

Added test case forward02.d.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Fri, 11 Jan 2008 14:42:00 +0100
parents 0e772400644c
children 50f22f0467e6
files trunk/src/test/forward02.d
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trunk/src/test/forward02.d	Fri Jan 11 14:42:00 2008 +0100
@@ -0,0 +1,9 @@
+/++
+  Author: Jari-Matti Mäkelä
++/
+
+// Possible circular composition.
+struct A { B* b; /*because of pointer*/ }
+struct B { A a; }
+// Equivalent to:
+struct A { A* a }