Mercurial > projects > ldc
view test/union6.d @ 138:aeddd4d533b3 trunk
[svn r142] minor fix to dynamic casts.
added a few missed files.
author | lindquist |
---|---|
date | Fri, 18 Jan 2008 20:13:19 +0100 |
parents | 2332006e1fa4 |
children |
line wrap: on
line source
module union6; pragma(LLVM_internal, "notypeinfo") { struct S { byte a; byte b; } union U { byte a; byte b; S c; } } void main() { U u; auto a = u.c.b; //auto c = u.s.l; }