# HG changeset patch # User Aziz K?ksal # Date 1200395446 -3600 # Node ID b4c9f1cb19c6f96a1c993c55633f793b224557c7 # Parent 2a690956cf1cf463a33974b5d8c9b47cb64c8e0f Added test forward05.d. diff -r 2a690956cf1c -r b4c9f1cb19c6 trunk/src/tests/forward03.d --- 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 diff -r 2a690956cf1c -r b4c9f1cb19c6 trunk/src/tests/forward05.d --- /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; }