Mercurial > projects > ldc
view test/union2.d @ 240:0db62b770a49 trunk
[svn r257] Fixed: array .sort and .reverse runtime code was incorrect.
Fixed: most runtime calls did not get correct param attrs.
author | lindquist |
---|---|
date | Mon, 09 Jun 2008 00:01:10 +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);} } }