Mercurial > projects > ldc
view test/union2.d @ 322:1aaf6ff7f685 trunk
[svn r343] Move object.di used for running dstress into separate directory.
author | ChristianK |
---|---|
date | Wed, 09 Jul 2008 17:02:55 +0200 |
parents | 61615fa85940 |
children |
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; {assert(*p == 0);} } }