view tangotests/debug8.d @ 338:0c90d816394f trunk

[svn r359] Try to fix DtoArrayInit. Unfinished, breaks for arrays of primitive types.
author ChristianK
date Sat, 12 Jul 2008 23:56:56 +0200
parents c6f25edd6ef3
children
line wrap: on
line source

module tangotests.debug8;

struct Str
{
    size_t len;
    void* ptr;
}

struct Foo
{
    long l;
    Bar bar;
}

struct Bar
{
    float x,y,z;
    Foo* foo;
}

void main()
{
    Str str;
    Foo foo;
    foo.l = 42;
    foo.bar.y = 3.1415;
    foo.bar.foo = &foo;

    int* fail;
    *fail = 0;
}