Mercurial > projects > ldc
view tests/mini/structinit2.d @ 1003:de97188378bc
Fix struct field alignment on x86-64 (for align > 8, like real.alignof)
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Fri, 27 Feb 2009 12:35:31 +0100 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module structinit2; struct Imp { int i; long l; float f; } void main() { Imp i; assert(i.i == 0); assert(i.l == 0L); assert(i.f !<>= 0.0f); }