Mercurial > projects > ldc
view test/neg.d @ 36:c0967c4b2a74 trunk
[svn r40] Cleaned up some of the array routines to use gep/load/store instead of memcpy/memset.
Resizing arrays did not allocate enough memory for types bigger than 1 byte.
author | lindquist |
---|---|
date | Tue, 09 Oct 2007 07:51:13 +0200 |
parents | 77e3d1ddae3f |
children |
line wrap: on
line source
module neg; void main() { int i = 32; long l = 55; float f = 23; double d = 4; assert(-i == -32); assert(-l == -55); assert(-f == -23); assert(-d == -4); }