view test/bug40.d @ 76:9e1bd80a7e98 trunk

[svn r80] Fixed union literals
author lindquist
date Wed, 31 Oct 2007 07:24:02 +0100
parents d7e764e62462
children
line wrap: on
line source

module bug40;

char[] func(void* p)
{
    return null;
}

void main()
{
    char[] function(void*) fp = &func;
    assert(fp(null) is null);
}