Files
ldc/test/bug40.d
Tomas Lindquist Olsen 4230f2ef11 [svn r76] Fixed: TypeInfo for structs.
Fixed: PostExp was unable to allocate storage for parameters.
Fixed: Many types of functions and delegates were broken.
Misc cleanups.
2007-10-29 03:28:12 +01:00

13 lines
143 B
D

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