mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-23 23:23:13 +01:00
[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.
This commit is contained in:
12
test/bug40.d
Normal file
12
test/bug40.d
Normal file
@@ -0,0 +1,12 @@
|
||||
module bug40;
|
||||
|
||||
char[] func(void* p)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
char[] function(void*) fp = &func;
|
||||
assert(fp(null) is null);
|
||||
}
|
||||
Reference in New Issue
Block a user