mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-01 01:53:16 +01:00
Fixed .funcptr property of delegates, no longer uses the infamous DMD rewrites to pointer arithmetic, instead a GEPExp has been introduced.
This commit is contained in:
9
tests/mini/dgfuncptr.d
Normal file
9
tests/mini/dgfuncptr.d
Normal file
@@ -0,0 +1,9 @@
|
||||
void main()
|
||||
{
|
||||
void foo() {}
|
||||
|
||||
auto dg = &foo;
|
||||
|
||||
if(dg.funcptr is null)
|
||||
{ assert(0); }
|
||||
}
|
||||
Reference in New Issue
Block a user