diff tests/code/float_1.d @ 122:2d6556f72afb

float tests
author Anders Halager <halager@gmail.com>
date Sun, 25 May 2008 21:03:06 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/code/float_1.d	Sun May 25 21:03:06 2008 +0200
@@ -0,0 +1,11 @@
+int main()
+{
+    float a = 1.0 + 1;
+    double b = a + 1.0 + 2;
+    real c = b + a + 1e300;
+    c = c * a + a;
+    return c != f();
+}
+
+real f();
+