Mercurial > projects > ldc
view tests/mini/structinit5.d @ 1329:e5b57fd8307c
Turn new _d_array_slice_copy runtime call into memcpy when the slice lengths are
equal and alias analysis says it's safe.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 10 May 2009 04:18:14 +0200 |
parents | 545f54041d91 |
children |
line wrap: on
line source
struct Vertex { uint[1] c; } void main() { uint[1] c = 0xffffffff; auto v = Vertex(c); assert(v.c[0] == 0xffffffff); // fails in LDC }