annotate tests/mini/bug62.d @ 883:b52d5de7783f

GC defines and linkage changes.
author Christian Kamm <kamm incasoftware de>
date Thu, 08 Jan 2009 18:20:02 +0100
parents 1bb99290e03a
children
rev   line source
lindquist@94 1 module bug62;
lindquist@270 2 extern(C) int printf(char*, ...);
lindquist@94 3
lindquist@94 4 void main()
lindquist@94 5 {
lindquist@94 6 int[] arr = [1,2,5,7,9];
lindquist@94 7 int i = 0;
lindquist@94 8 foreach(v; arr) {
lindquist@94 9 i += v;
lindquist@94 10 }
lindquist@94 11 printf("sum = %d\n", i);
lindquist@94 12 assert(i == 24);
lindquist@94 13 }