annotate tests/mini/memory1.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@34 1 module memory1;
lindquist@34 2
lindquist@133 3 extern(C) int printf(char*,...);
lindquist@133 4
lindquist@34 5 void main()
lindquist@34 6 {
lindquist@34 7 auto a = new int[16];
lindquist@34 8 {printf("array.length = %u\n", a.length);}
lindquist@34 9 {a.length = a.length + 1;}
lindquist@34 10 {printf("array.length = %u\n", a.length);}
lindquist@34 11 {assert(a.length == 17);}
lindquist@34 12 }