Mercurial > projects > dstress
changeset 914:7e37cc332431
Sean Kelly <sean@f4.ca>
2006-03-15
news:dv9okf$mfp$1@digitaldaemon.com
author | thomask |
---|---|
date | Wed, 15 Mar 2006 20:21:44 +0000 |
parents | 1173272680e3 |
children | 20545aed98f2 |
files | run/i/is_13_A.d run/i/is_13_B.d run/i/is_13_C.d run/i/is_13_D.d |
diffstat | 4 files changed, 96 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/i/is_13_A.d Wed Mar 15 20:21:44 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Sean Kelly <sean@f4.ca> +// @date@ 2006-03-15 +// @uri@ news:dv9okf$mfp$1@digitaldaemon.com + +module dstress.run.i.is_13_A; + +class C{ + int dummy; + + int test(int i){ + return i * dummy; + } +} + +int main(){ + if(!is(C.test == delegate)){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/i/is_13_B.d Wed Mar 15 20:21:44 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Sean Kelly <sean@f4.ca> +// @date@ 2006-03-15 +// @uri@ news:dv9okf$mfp$1@digitaldaemon.com + +module dstress.run.i.is_13_B; + +class C{ + int dummy; + + int test(int i){ + return i * dummy; + } +} + +int main(){ + if(is(C.test == function)){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/i/is_13_C.d Wed Mar 15 20:21:44 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Sean Kelly <sean@f4.ca> +// @date@ 2006-03-15 +// @uri@ news:dv9okf$mfp$1@digitaldaemon.com + +module dstress.run.i.is_13_C; + +class C{ + static int test(int i){ + return i * 2; + } +} + +int main(){ + if(!is(C.test == function)){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/i/is_13_D.d Wed Mar 15 20:21:44 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Sean Kelly <sean@f4.ca> +// @date@ 2006-03-15 +// @uri@ news:dv9okf$mfp$1@digitaldaemon.com + +module dstress.run.i.is_13_D; + +class C{ + static int test(int i){ + return i * 2; + } +} + +int main(){ + if(is(C.test == delegate)){ + assert(0); + } + + return 0; +}