Mercurial > projects > dstress
view run/a/auto_16_F.d @ 1560:36bedfa079e6
D1 -> D2 : 2/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:15:01 +0000 |
parents | b8c0195059d9 |
children |
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{ string 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; }