view tangotests/mem2.d @ 312:553f844ae5b9 trunk

[svn r333] Fix inline asm bug with multiple branches to the same label.
author ChristianK
date Sun, 29 Jun 2008 22:07:15 +0200
parents c4c9b4ac021b
children
line wrap: on
line source

module tangotests.mem2;

void main()
{
    int* ip = new int;
    assert(*ip == 0);
    *ip = 4;
    assert(*ip == 4);
    delete ip;
    assert(ip is null);
}