changeset 652:b4c9f1cb19c6

Added test forward05.d.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Tue, 15 Jan 2008 12:10:46 +0100
parents 2a690956cf1c
children 29cc5bf3ce89
files trunk/src/tests/forward03.d trunk/src/tests/forward05.d
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/tests/forward03.d	Tue Jan 15 11:40:11 2008 +0100
+++ b/trunk/src/tests/forward03.d	Tue Jan 15 12:10:46 2008 +0100
@@ -5,3 +5,14 @@
 // Impossible static circular reference.
 const x = y;
 const y = x;
+
+// Impossible static circular reference.
+struct A
+{ const int a = B.b; }
+struct B
+{ const int b = A.a; }
+
+struct C
+{
+  const x = C.x;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trunk/src/tests/forward05.d	Tue Jan 15 12:10:46 2008 +0100
@@ -0,0 +1,9 @@
+/++
+  Author: Aziz Köksal
++/
+
+struct A
+{ int a = B.x; }
+
+struct B
+{ const int x = 1; }