Mercurial > projects > ldc
view test/foreach7.d @ 186:395223f9875e trunk
[svn r202] added start of dstress-based test suite to tests/
author | ChristianK |
---|---|
date | Thu, 08 May 2008 22:32:22 +0200 |
parents | b706170e24a9 |
children |
line wrap: on
line source
module foreach7; void main() { int[4] a = [1,2,3,4]; int i; foreach(v; a[0..3]) { i += v; } assert(i == 6); }