Mercurial > projects > ldc
view test/union2.d @ 92:70d6113eeb8c trunk
[svn r96] Updated to DMD 1.023.
Regular bugfixes.
author | lindquist |
---|---|
date | Thu, 08 Nov 2007 19:13:28 +0100 |
parents | b706170e24a9 |
children | 61615fa85940 |
line wrap: on
line source
module union2; pragma(LLVM_internal, "notypeinfo") union U { float f; long l; } U u; void main() { assert(u.f !<>= 0); uint* p = 1 + cast(uint*)&u.l; assert(*p == 0); }