Mercurial > projects > ldc
view tangotests/debug2.d @ 328:7086a84ab3d6 trunk
[svn r349] Fixed problems with static arrays of void as well as a static arrays with zero length.
Fixed issues with DMD generated assert statements when using class invariants, generally due to incomplete ASTs.
Removed some dead code.
Added a few comments.
author | lindquist |
---|---|
date | Fri, 11 Jul 2008 00:17:00 +0200 |
parents | d61ce72c39ab |
children |
line wrap: on
line source
module tangotests.debug2; import tango.stdc.stdlib : rand; void main() { size_t iter; while (iter < 25) { if (rand() % 20 == 10) *cast(int*)null = 0; ++iter; } assert(0); }