Mercurial > projects > ldc
view test/bug62.d @ 206:cd2c9f4010e4 trunk
[svn r222] Forgot to remove volatile ATTENTION.
Fixed a few comment types.
Forgot to add makefile for the basic GC.
author | lindquist |
---|---|
date | Tue, 13 May 2008 18:07:03 +0200 |
parents | 61615fa85940 |
children | d9d5d59873d8 |
line wrap: on
line source
module bug62; void main() { int[] arr = [1,2,5,7,9]; int i = 0; foreach(v; arr) { i += v; } printf("sum = %d\n", i); assert(i == 24); }