view test/memory1.d @ 63:2c39b5292cf3 trunk

[svn r67] Fixed ignore unittests instead of failing to compile
author lindquist
date Thu, 25 Oct 2007 10:05:21 +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);}
}