view test/memory1.d @ 52:0c77619e803b trunk

[svn r56] Initial support for TypeInfo. Enums not work. Several other bugfixes.
author lindquist
date Tue, 23 Oct 2007 05:55:12 +0200
parents 4648206ca213
children 44a95ac7368a
line wrap: on
line source

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);}
}