Mercurial > projects > dstress
view run/f/foreach_33_C.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 | a929acac9127 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstess.run.f.foreach_33_C; int main(){ int sum = 0; char[] data = "\u0001\u0010\u0030"; creal c = 1.0L + 2.0Li; foreach(x; data){ static assert(typeid(typeof(x)) == typeid(char)); sum += x; } if(sum != 0x41){ assert(0); } return 0; }