Mercurial > projects > dstress
view run/o/odd_bug_06_B.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | be2b20dc0eb4 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ David Medlock <noone@nowhere.com> // @date@ 2006-07-08 // @uri@ news:e8narj$2h1s$1@digitaldaemon.com // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1031 // @desc@ Initialization error in classes module dstress.run.o.odd_bug_06_B; struct Foo{ float[4] array = 1.0f; int count = 10; } int main(){ Foo f; if(f.count != 10){ assert(0); } if(f.array.length != 4){ assert(0); } if(f.array[0] != 1.0f){ assert(0); } if(f.array[1] != 1.0f){ assert(0); } if(f.array[2] != 1.0f){ assert(0); } if(f.array[3] != 1.0f){ assert(0); } return 0; }