mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +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,5 +9,5 @@ void main()
|
||||
void foo(cfloat c)
|
||||
{
|
||||
assert(c.re > 2.9999 && c.re < 3.0001);
|
||||
assert(c.im > 1.9999i && c.im < 2.0001);
|
||||
assert(c.im > 1.9999i && c.im < 2.0001i);
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ void main()
|
||||
auto dg = &foo;
|
||||
|
||||
if(dg.funcptr is null)
|
||||
{}
|
||||
{ assert(0); }
|
||||
}
|
||||
Reference in New Issue
Block a user