Mercurial > projects > ldc
view test/union2.d @ 154:5cb946f323d2 trunk
[svn r160] Added cleaned version of dmd's linux exception runtime
author | ChristianK |
---|---|
date | Tue, 25 Mar 2008 18:25:24 +0100 |
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);} } }