annotate tests/mini/aa2.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/aa2.d@5ab8e92611f9
children
rev   line source
lindquist@109 1 module aa2;
lindquist@109 2
lindquist@109 3 void main()
lindquist@109 4 {
lindquist@109 5 long[float] aa;
lindquist@109 6 long* p = 2.0f in aa;
lindquist@109 7 assert(!p);
lindquist@109 8 aa[4f] = 23;
lindquist@109 9 p = 4f in aa;
lindquist@109 10 assert(p);
lindquist@109 11 assert(*p == 23);
lindquist@109 12 }