view tangotests/mem2.d @ 289:17d3b3236334 trunk

[svn r310] Fixed a problem with incomplete types and templates in typeinfo code.
author lindquist
date Sat, 21 Jun 2008 16:22:29 +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);
}