changeset 1127:08057f3259c9

[Issue 326] New: calculation bug sugiyama <sugiyama563@msn.com> 2006-09-06 news:bug-326-3@http.d.puremagic.com/issues/
author thomask
date Thu, 07 Sep 2006 07:51:27 +0000
parents 785c8eaa48b4
children 02b54d874f0f
files reporter.txt run/o/odd_bug_08_A.d run/o/odd_bug_08_B.d run/o/odd_bug_08_C.d run/o/odd_bug_08_D.d run/o/odd_bug_08_E.d run/o/odd_bug_08_F.d run/o/odd_bug_08_G.d run/o/odd_bug_08_H.d run/o/odd_bug_08_I.d
diffstat 10 files changed, 308 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/reporter.txt	Wed Sep 06 21:12:08 2006 +0000
+++ b/reporter.txt	Thu Sep 07 07:51:27 2006 +0000
@@ -94,7 +94,7 @@
 ndove			http://www.dsource.org/forums/profile.php?mode=viewprofile&u=142
 Neil Santos
 Nick Sabalausky
-Oskar Linde		<d98-oliRE.MO.VE@nada.kth.se>
+Oskar Linde		<d98-oliRE.MO.VE@nada.kth.se>, <oskar.linde@gmail.com>
 Patrick Down
 Paul Guerra
 Paul Runde		<prunde@consolidated.net>
@@ -116,6 +116,7 @@
 Stephan Wienczny	<Stephan@Wienczny.de>, <wienczny@web.de>
 Sterling Christensen	<sterlingchristensen@hotmail.com>
 Stewart Gordon		<smjg_1998@yahoo.com>, <smjg@iname.com>
+sugiyama		<sugiyama563@msn.com>
 teqDruid		<me@teqdruid.com>
 tetsuya
 Thomas Kuehne		<thomas-dloop@kuehne.THISISSPAM.cn>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_08_A.d	Thu Sep 07 07:51:27 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	sugiyama <sugiyama563@msn.com>
+// @date@	2006-09-06
+// @uri@	news:bug-326-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 326] New: calculation bug
+
+module dstress.run.o.odd_bug_08_A;
+
+void check(int i){
+	static int expected = 1;
+
+	if(i != expected){
+		assert(0);
+	}
+
+	expected++;
+}
+
+int main() {
+	int x = 2, y = 1;
+	
+	int res = 0;
+	for(int i = 0; i < 10; i++) {
+		res = res + x - y;
+		check(res);
+	}
+
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_08_B.d	Thu Sep 07 07:51:27 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	sugiyama <sugiyama563@msn.com>
+// @date@	2006-09-06
+// @uri@	news:bug-326-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 326] New: calculation bug
+
+module dstress.run.o.odd_bug_08_B;
+
+void check(int i){
+	static int expected = 1;
+
+	if(i != expected){
+		assert(0);
+	}
+
+	expected++;
+}
+
+int main() {
+	const int x = 2, y = 1;
+	
+	int res = 0;
+	for(int i = 0; i < 10; i++) {
+		res = res + x - y;
+		check(res);
+	}
+
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_08_C.d	Thu Sep 07 07:51:27 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	sugiyama <sugiyama563@msn.com>
+// @date@	2006-09-06
+// @uri@	news:bug-326-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 326] New: calculation bug
+
+module dstress.run.o.odd_bug_08_C;
+
+void check(int i){
+	static int expected = 1;
+
+	if(i != expected){
+		assert(0);
+	}
+
+	expected++;
+}
+
+const int x = 2, y = 1;
+
+int main() {	
+	int res = 0;
+	for(int i = 0; i < 10; i++) {
+		res = res + x - y;
+		check(res);
+	}
+
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_08_D.d	Thu Sep 07 07:51:27 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	sugiyama <sugiyama563@msn.com>
+// @date@	2006-09-06
+// @uri@	news:bug-326-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 326] New: calculation bug
+
+module dstress.run.o.odd_bug_08_D;
+
+void check(int i){
+	static int expected = 1;
+
+	if(i != expected){
+		assert(0);
+	}
+
+	expected++;
+}
+
+int x = 2, y = 1;
+
+int main() {	
+	int res = 0;
+	for(int i = 0; i < 10; i++) {
+		res = res + x - y;
+		check(res);
+	}
+
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_08_E.d	Thu Sep 07 07:51:27 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	sugiyama <sugiyama563@msn.com>
+// @date@	2006-09-06
+// @uri@	news:bug-326-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 326] New: calculation bug
+
+module dstress.run.o.odd_bug_08_E;
+
+void check(int i){
+	static int expected = 1;
+
+	if(i != expected){
+		assert(0);
+	}
+
+	expected++;
+}
+
+uint x = 2, y = 1;
+
+int main() {	
+	int res = 0;
+	for(int i = 0; i < 10; i++) {
+		res = res + x - y;
+		check(res);
+	}
+
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_08_F.d	Thu Sep 07 07:51:27 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	sugiyama <sugiyama563@msn.com>
+// @date@	2006-09-06
+// @uri@	news:bug-326-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 326] New: calculation bug
+
+module dstress.run.o.odd_bug_08_F;
+
+void check(int i){
+	static int expected = 1;
+
+	if(i != expected){
+		assert(0);
+	}
+
+	expected++;
+}
+
+byte x = 2, y = 1;
+
+int main() {	
+	int res = 0;
+	for(int i = 0; i < 10; i++) {
+		res = res + x - y;
+		check(res);
+	}
+
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_08_G.d	Thu Sep 07 07:51:27 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	sugiyama <sugiyama563@msn.com>
+// @date@	2006-09-06
+// @uri@	news:bug-326-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 326] New: calculation bug
+
+module dstress.run.o.odd_bug_08_G;
+
+void check(int i){
+	static int expected = 1;
+
+	if(i != expected){
+		assert(0);
+	}
+
+	expected++;
+}
+
+ubyte x = 2, y = 1;
+
+int main() {	
+	int res = 0;
+	for(int i = 0; i < 10; i++) {
+		res = res + x - y;
+		check(res);
+	}
+
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_08_H.d	Thu Sep 07 07:51:27 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	sugiyama <sugiyama563@msn.com>
+// @date@	2006-09-06
+// @uri@	news:bug-326-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 326] New: calculation bug
+
+module dstress.run.o.odd_bug_08_H;
+
+void check(int i){
+	static int expected = 1;
+
+	if(i != expected){
+		assert(0);
+	}
+
+	expected++;
+}
+
+long x = 2, y = 1;
+
+int main() {	
+	int res = 0;
+	for(int i = 0; i < 10; i++) {
+		res = res + x - y;
+		check(res);
+	}
+
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_08_I.d	Thu Sep 07 07:51:27 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	sugiyama <sugiyama563@msn.com>
+// @date@	2006-09-06
+// @uri@	news:bug-326-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 326] New: calculation bug
+
+module dstress.run.o.odd_bug_08_I;
+
+void check(int i){
+	static int expected = 1;
+
+	if(i != expected){
+		assert(0);
+	}
+
+	expected++;
+}
+
+ulong x = 2, y = 1;
+
+int main() {	
+	int res = 0;
+	for(int i = 0; i < 10; i++) {
+		res = res + x - y;
+		check(res);
+	}
+
+	return 0;
+}
+
+