Mercurial > projects > dstress
view run/a/auto_16_F.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 03b5056496f1 |
children | 36bedfa079e6 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ yama <yama_member@pathlink.com> // @date@ 2006-02-26 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6373 // __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; }