Mercurial > projects > dstress
diff run/a/auto_16_F.d @ 871:375f22f2c56e
yama <yama_member@pathlink.com>
2006-02-26
news:dtr1ms$2upj$1@digitaldaemon.com
author | thomask |
---|---|
date | Wed, 01 Mar 2006 18:06:04 +0000 |
parents | |
children | 03b5056496f1 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/auto_16_F.d Wed Mar 01 18:06:04 2006 +0000 @@ -0,0 +1,39 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ yama <yama_member@pathlink.com> +// @date@ 2006-02-26 +// @uri@ news:dtr1ms$2upj$1@digitaldaemon.com + +// __DSTRESS_DFLAGS__ -version=always + +module dstress.run.a.auto_16_F; + +class C{ + char[] toString(){ + return "hallo bug"; + } +} + +int main(){ + version(always){ + auto C c; + c = new C(); + } + + if((new C()).toString() != "hallo bug"){ + assert(0); + } + + version(always){ + if(c.toString() != "hallo bug"){ + assert(0); + } + } + + return 0; +} + + +