changeset 391:7fc991afefd1

0. and 0..1 can be recognized Walter <walter@digitalmars.com> 2005-04-06 mail:001701c53ace$7e91de50$0200a8c0@colossus
author thomask
date Wed, 06 Apr 2005 18:30:47 +0000
parents 0b6abb63f92d
children 9faddc0de2ba
files nocompile/float_litaeral_dec_08.d nocompile/float_litaeral_dec_09.d run/float_litaeral_dec_08.d run/float_litaeral_dec_09.d
diffstat 4 files changed, 24 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/nocompile/float_litaeral_dec_08.d	Wed Apr 06 18:25:21 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// this is illegal otherwise 0..max would be legal for 0.max
-
-// __DSTRESS_ELINE__ 12
-
-module dstress.nocompile.float_literal_dec_08;
-
-int main(){
-	float f = 0. ;
-	return 0;
-}
--- a/nocompile/float_litaeral_dec_09.d	Wed Apr 06 18:25:21 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// this is illegal otherwise 1..0 would be interpeted as 1.0
-
-// __DSTRESS_ELINE__ 12
-
-module dstress.nocompile.float_literal_dec_09;
-
-int main(){
-	float f = .0 ;
-	return 0;
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/float_litaeral_dec_08.d	Wed Apr 06 18:30:47 2005 +0000
@@ -0,0 +1,12 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.run.float_literal_dec_08;
+
+int main(){
+	double f = 0. ;
+	double ff = 0.0;
+	assert(f==ff);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/float_litaeral_dec_09.d	Wed Apr 06 18:30:47 2005 +0000
@@ -0,0 +1,12 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.run.float_literal_dec_09;
+
+int main(){
+	double f = .0 ;
+	double ff = 0.0;
+	assert(f==ff);
+	return 0;
+}