view test/union6.d @ 318:8e570dbe4087 trunk

[svn r339] Add cleanup handling when within an action chain and some more documentation to the eh personality function.
author ChristianK
date Fri, 04 Jul 2008 09:00:49 +0200
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;
}