view tangotests/mem3.d @ 296:0548a7720a1b trunk

[svn r317] Convert result of _adEq runtime function to bool to make sure EqualExp returns i1 bool.
author ChristianK
date Mon, 23 Jun 2008 19:08:32 +0200
parents c4c9b4ac021b
children
line wrap: on
line source

module tangotests.mem3;

void main()
{
    int[] arr;
    arr ~= [1,2,3];
    assert(arr[0] == 1);
    assert(arr[1] == 2);
    assert(arr[2] == 3);
    delete arr;
    assert(arr is null);
}