# HG changeset patch # User thomask # Date 1119602946 0 # Node ID 4e81f0907fb994036892c5030ea2b87a9ffcf9b8 # Parent 66f476bc896322ce6e57c8c583f3eb836ddcd676 Walter 2005-06-18 news:d91k96$oh9$1@digitaldaemon.com diff -r 66f476bc8963 -r 4e81f0907fb9 nocompile/c/class_17.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/c/class_17.d Fri Jun 24 08:49:06 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @desc@ class inheritance recoursion +// @author@ Andrew Fedoniouk +// @date@ 2005-06-09 +// @uri@ news:d88kv9$he4$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 21 + +module dstress.nocompile.c.class_17; + +class A{ + const class B:A{ + const int C = 5; + } +} + +int main(){ + assert(A.B.B.C==5); + return 0; +} diff -r 66f476bc8963 -r 4e81f0907fb9 run/c/class_16.d --- a/run/c/class_16.d Fri Jun 24 08:39:45 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @desc@ class inheritance recoursion -// @author@ Andrew Fedoniouk -// @date@ 2005-06-09 -// @uri@ news:d88kv9$he4$1@digitaldaemon.com - -module dstress.run.c.class_16; - -class A{ - class B:A{ - const int C = 5; - } -} - -int main(){ - assert(A.B.C==5); - assert(A.B.B.C==5); - assert(A.B.B.B.C==5); - assert(A.B.B.B.B.C==5); - assert(A.B.B.B.B.B.C==5); - assert(A.B.B.B.B.B.B.C==5); - assert(A.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.C*A.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.C==25); - return 0; -} \ No newline at end of file