changeset 892:d0c871656e10

Thomas Kuehne <thomas-dloop@kuehne.cn> 2006-03-06 news:bug-21-3@http.d.puremagic.com/bugzilla/
author thomask
date Mon, 06 Mar 2006 17:06:36 +0000
parents c2111f61b5d0
children e5f5316b1440
files run/d/double_28_A.d run/d/double_28_B.d
diffstat 2 files changed, 47 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/d/double_28_A.d	Mon Mar 06 17:06:36 2006 +0000
@@ -0,0 +1,24 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.cn>
+// @date@	2006-03-06
+// @uri@	news:bug-21-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.d.double_28_A;
+
+int main(){
+	static if((real.max >=  double.max)
+		&& (real.dig >= double.dig)
+		&& (double.max >= 1.7976931348623157e+308))
+	{
+		double d = 1.7976931348623157e+308;
+		real r = d;
+
+		if(r != 1.7976931348623157e+308){
+			assert(0);
+		}
+	}
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/d/double_28_B.d	Mon Mar 06 17:06:36 2006 +0000
@@ -0,0 +1,23 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.cn>
+// @date@	2006-03-06
+// @uri@	news:bug-21-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.d.double_28_B;
+
+int main(){
+	static if((real.max >=  double.max)
+		&& (real.dig >= double.dig))
+	{
+		double d = double.max;
+		real r = d;
+
+		if(r != double.max){
+			assert(0);
+		}
+	}
+	return 0;
+}