Mercurial > projects > dstress
changeset 252:9241d98c43f9
extended module tests
author | thomask |
---|---|
date | Wed, 26 Jan 2005 07:23:16 +0000 |
parents | 6cd84461e17b |
children | 4cf5a45bf77d |
files | nocompile/module_03.d run/module_02.d run/module_04.d |
diffstat | 3 files changed, 45 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/module_03.d Wed Jan 26 07:23:16 2005 +0000 @@ -0,0 +1,7 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +int x; + +module dstress.nocompile.module_03;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/module_02.d Wed Jan 26 07:23:16 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne <thomas@kuehne.thisisspam.cn> +// @date@ 2005-01-26 + +/*module dstress.run.module_02;*/ + +int i; + +int main(){ + assert(module_02.i==0); + module_02.i++; + assert(module_02.i==1); + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/module_04.d Wed Jan 26 07:23:16 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne <thomas@kuehne.thisisspam.cn> +// @date@ 2005-01-26 + +// __DSTRESS_DFLAGS__ -I. + +/*module dstress.run.module_04;*/ + +int i; + +int main(){ + assert(run.module_04.i==0); + run.module_04.i++; + assert(run.module_04.i==1); + return 0; +} +