Mercurial > projects > ldc
view test/bug41.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 | b706170e24a9 |
children |
line wrap: on
line source
module bug41; void main() { char[] a = "hello world"; char* ap = a.ptr; size_t i = 5; char[] b = ap[0..i]; assert(b == "hello"); }