Mercurial > projects > ldc
view tests/mini/union2.d @ 962:a415d305477f
Fix 32 bit truncation of 'asm { movq RAX, 0xAA_1234_5678; }'...ie. move constant larger than 32 bits
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Sun, 15 Feb 2009 16:30:15 -0700 |
parents | 44f08170f4ef |
children |
line wrap: on
line source
module union2; union U { float f; long l; } U u; void main() { assert(u.f !<>= 0); { uint* p = 1 + cast(uint*)&u; {assert(*p == 0);} } }