Files
ldc/test/memory1.d
Tomas Lindquist Olsen 3db5b9bb98 [svn r38] * resizing dynamic arrays support
* throw is replaced with assert(0)
* catch is ignored
* better foreach support
* various bugfixes
2007-10-09 02:50:00 +02:00

11 lines
214 B
D

module memory1;
void main()
{
auto a = new int[16];
{printf("array.length = %u\n", a.length);}
{a.length = a.length + 1;}
{printf("array.length = %u\n", a.length);}
{assert(a.length == 17);}
}