Mercurial > projects > dstress
changeset 599:4e81f0907fb9
Walter <newshound@digitalmars.com>
2005-06-18
news:d91k96$oh9$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 24 Jun 2005 08:49:06 +0000 |
parents | 66f476bc8963 |
children | c0ba153df32f |
files | nocompile/c/class_17.d run/c/class_16.d |
diffstat | 2 files changed, 23 insertions(+), 27 deletions(-) [+] |
line wrap: on
line diff
--- /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 <news@terrainformatica.com> +// @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; +}
--- 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 <news@terrainformatica.com> -// @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