view tests/mini/memory1.d @ 862:e8337278f49b

temporary fix for runtime buildscript to copy ldc's imports to tango
author elrood
date Thu, 18 Dec 2008 19:21:44 +0100
parents 1bb99290e03a
children
line wrap: on
line source

module memory1;

extern(C) int printf(char*,...);

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