view test/bug40.d @ 153:2c447715c047 trunk

[svn r159] added some code to help diagnose ticket #35
author lindquist
date Tue, 25 Mar 2008 16:33:19 +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);
}