view tangotests/mem2.d @ 264:a9dae3da4e87 trunk

[svn r285] Fixed D -> bool LLVM helper for floating point values. Changed the way D-style varargs are passed, now each param should be aligned to size_t.sizeof.
author lindquist
date Sat, 14 Jun 2008 17:28:13 +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);
}