We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebafa4e commit d957fbfCopy full SHA for d957fbf
tests/dmd/runnable/test24819.d
@@ -0,0 +1,18 @@
1
+import core.stdc.stdio;
2
+
3
+pragma(inline, true)
4
+double sqrt(double x)
5
+{
6
+ static import core.math;
7
+ return core.math.sqrt(x);
8
+}
9
10
+int main()
11
12
+ double q = -5.0;
13
+ double r = q + 1.0;
14
+ double result = sqrt(-r);
15
+ //printf("%f\n", result);
16
+ assert(result == 2);
17
+ return 0;
18
0 commit comments