view test/bug40.d @ 211:f66219e0d530 trunk

[svn r227] Fixed: crash in lifetime.d when resizing array of AAs by .length assignment.
author lindquist
date Tue, 27 May 2008 19:53:29 +0200
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);
}