Mercurial > projects > dstress
view run/a/auto_16_C.d @ 1611:9f94be6a5ace
Fix typo in last commit.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 10 May 2009 10:56:43 +0200 |
parents | 36bedfa079e6 |
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_C; auto class C{ string toString(){ return "hallo bug"; } } int main(){ auto C c; version(always){ c = new C(); } if(c.toString() != "hallo bug"){ assert(0); } return 0; }