view test/bug8.d @ 150:2c336566ffed trunk

[svn r156] added a testcase for the most annoying bug ever
author lindquist
date Mon, 24 Mar 2008 20:05:44 +0100
parents 8b0e809563df
children
line wrap: on
line source

module bug8;

void main()
{
    s = newS();
}

S* s;

struct S
{
    int i;
}

S* newS()
{
    auto tmp = new S;
    tmp.i = 4;
    return tmp;
}