view tangotests/debug8.d @ 253:c6f25edd6ef3 trunk

[svn r270] Forgot the test for struct debug info.
author lindquist
date Thu, 12 Jun 2008 17:01:31 +0200
parents
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;
}