view tests/mini/forwdecl1.d @ 1225:837f48560863

No need for temporary alloca's here, use a phi node instead.
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 19 Apr 2009 19:28:10 +0200
parents a15ccbf7451d
children
line wrap: on
line source

struct Foo;

Foo* foo()
{
    return null;
}

void main()
{
    Foo* f = foo();
    assert(f is null);
}