Mercurial > projects > ldc
view test/alignment.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 | c53b6e3fe49a |
children |
line wrap: on
line source
module alignment; align(1) struct S { ubyte b; int i; ubyte[2] b2; long l; real r; } void main() { byte b; short s; int i; long l; float f; double d; real r; }