Mercurial > projects > dstress
view run/foreach_23.d @ 1626:e160bfec54d5
add test
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Thu, 06 Jan 2011 15:52:55 +0100 |
parents | 1c473946386f |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.foreach_23; int main(){ int[] array; array.length = 6; foreach(size_t i, int c; array){ array[0]+=i; } assert(array[0]==15); return 0; }