changeset 755:fb70ca0d80ba

updated resutls of DMD-0.093 - 0.101, 0.104, 0.121, 0.140
author thomask
date Sun, 27 Nov 2005 09:50:46 +0000
parents 3b8c45356bca
children 9a121126b077
files Makefile complex/command_line/complex.mak complex/error_message/complex.mak complex/error_message/error_message_01_A.d complex/error_message/error_message_01_B.d complex/error_message/error_message_01_C.d run/OutOfMemory_03.d
diffstat 7 files changed, 144 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Nov 26 21:44:48 2005 +0000
+++ b/Makefile	Sun Nov 27 09:50:46 2005 +0000
@@ -101,7 +101,7 @@
 
 .PHONY:: all version basic_tools compile nocompile run norun complex clean distclean clean_log
 
-.SUFFIXES: $(ext_run) $(ext_norun) $(ext_nocompile) $(ext_compile) 
+.SUFFIXES:: $(ext_run) $(ext_norun) $(ext_nocompile) $(ext_compile) 
 #
 # test everything
 #
--- a/complex/command_line/complex.mak	Sat Nov 26 21:44:48 2005 +0000
+++ b/complex/command_line/complex.mak	Sun Nov 27 09:50:46 2005 +0000
@@ -25,7 +25,7 @@
 	complex/command_line/$(complex_done) \
 	complex/command_line/clean
 
-.SUFFIXES: \
+.SUFFIXES:: \
 	.cmdnullfail
 	
 complex/command_line/warning :
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/complex/error_message/complex.mak	Sun Nov 27 09:50:46 2005 +0000
@@ -0,0 +1,60 @@
+# GnuMakefile for DStress http://dmd.kuehne.cn/dstress.html
+# Copyright (C) 2004 Thomas Kuehne
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+
+#
+# NOTE: almost all tests can be written using __DSTRESS_DFLAGS__
+#
+
+.PHONY:: \
+	complex/error_message/warning \
+	complex/error_message/$(complex_done) \
+	complex/error_message/clean
+
+.SUFFIXES:: \
+	.error_count
+	
+complex/error_message/warning :
+	@echo "don't invoke this file directly, instead use DStress' root Makefile with the target \"complex/error_message/complex.done\", \"complex\" or \"all\""
+
+#
+# name__command__line__arguments.cmdnullfail
+#
+# all double underscores in the arguments will be replaced by whitespace 
+#
+complex/error_message/raw = \
+	complex/error_message/__error_message_01_A.error_count \
+	complex/error_message/__error_message_01_B.error_count \
+	complex/error_message/__error_message_01_C.error_count
+
+# the actual target, will be called by root's "all" / "complex" target
+complex/error_message/$(complex_done) : $(complex/error_message/raw)
+
+%.error_count : 
+	$(eval z_raw = $(subst __, ,$*))
+	$(eval z_name = $(word 2,$(z_raw)))
+	$(eval z_arg = $(subst __,,$(subst ,.d,$(z_name))))
+	@if $(CD) complex/error_message ; $(DMD) -c $(z_arg) | wc -l | grep "^[0-9][0-9][0-9]" $(to_log); then \
+		$(ECHO) "FAIL: $(z_name)"; \
+	else \
+		$(ECHO) "PASS: $(z_name)"; \
+	fi 
+	
+# this will be called by root's "clean" target
+complex/error_message/clean :
+	$(RM) complex/error_message/*.done complex/error_message/*.$(dest_compile)
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/complex/error_message/error_message_01_A.d	Sun Nov 27 09:50:46 2005 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2005-11-24
+// @uri@	news:dm3rs0$2qit$1@digitaldaemon.com
+
+module dstress.complex.error_message.error_message_01_A;
+
+template a()
+{
+   const real val= 0x1p990;
+}
+
+template half(alias f)
+{
+   const real val = f.val/2;
+}
+
+template c(alias f)
+{
+    static if (f.val > 2.0)  const int val = c!( half!(f) ).val;
+}
+
+const int m = c!(a!()).val;
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/complex/error_message/error_message_01_B.d	Sun Nov 27 09:50:46 2005 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2005-11-24
+// @uri@	news:dm3rs0$2qit$1@digitaldaemon.com
+
+module dstress.complex.error_message.error_message_01_B;
+
+template a()
+{
+   const real val= 0x1p90;
+}
+
+template half(alias f)
+{
+   const real val = f.val/2;
+}
+
+template c(alias f)
+{
+    static if (f.val > 2.0)  const int val = c!( half!(f) ).val;
+}
+
+const int m = c!(a!()).val;
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/complex/error_message/error_message_01_C.d	Sun Nov 27 09:50:46 2005 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2005-11-24
+// @uri@	news:dm3rs0$2qit$1@digitaldaemon.com
+
+module dstress.complex.error_message.error_message_01_C;
+
+template a()
+{
+   const real val= 0x1p9;
+}
+
+template half(alias f)
+{
+   const real val = f.val/2;
+}
+
+template c(alias f)
+{
+    static if (f.val > 2.0)  const int val = c!( half!(f) ).val;
+}
+
+const int m = c!(a!()).val;
+
--- a/run/OutOfMemory_03.d	Sat Nov 26 21:44:48 2005 +0000
+++ b/run/OutOfMemory_03.d	Sun Nov 27 09:50:46 2005 +0000
@@ -23,6 +23,6 @@
 			return 0;
 		}
 	}
-	assert(0)
+	assert(0);
 }