Related to issue 21376, the following test fails when compiled with `-inline`.
---
import core.math;
float hypot(float x, float y)
{
float u = fabs(x);
float v = fabs(y);
return sqrt(u*u + v*v);
}
float abs(float re, float im)
{
return hypot(re, im);
}
void log(real x)
{
assert(x == 1);
}
extern(C) void main()
{
float re = 0.866025403784438646787;
float im = 0.5;
return log(abs(re, im));
}
---
This only occurs with dmd (gdc and ldc do not have this issue).
Comment #1 by robert.schadek — 2024-12-13T19:14:18Z