view tangotests/debug8.d @ 286:a3b7c19c866c trunk

[svn r307] Fixed: multidimensional new expressions now work. Eg.: auto ma = new int[][] (3,9);
author lindquist
date Sat, 21 Jun 2008 04:47:14 +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;
}