annotate tests/mini/bug7.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/bug7.d@4648206ca213
children
rev   line source
lindquist@34 1 module bug7;
lindquist@34 2
lindquist@34 3 class love { }
lindquist@34 4 void bug() {
lindquist@34 5 love[] child;
lindquist@34 6 child.length=1;
lindquist@34 7 assert(child[0] is null);
lindquist@34 8 child[0]=null;
lindquist@34 9 assert(child[0] is null);
lindquist@34 10 }
lindquist@34 11 void main()
lindquist@34 12 {
lindquist@34 13 bug();
lindquist@34 14 }