view test/bug7.d @ 128:e5fe8521bbfa trunk

[svn r132] Added some tests. some will fail at the moment.
author lindquist
date Fri, 30 Nov 2007 17:12:08 +0100
parents 4648206ca213
children
line wrap: on
line source

module bug7;

class love { }
void bug() {
    love[] child;
    child.length=1;
    assert(child[0] is null);
    child[0]=null;
    assert(child[0] is null);
}
void main()
{
    bug();
}