changeset 996:1d695c74f398

<CppCoder@gmail.com> 2006-05-02 news:bug-123-3@http.d.puremagic.com/bugzilla/
author thomask
date Mon, 15 May 2006 04:22:42 +0000
parents 2a2fce159e30
children b87623b56a7f
files run/l/length_10_A.d run/l/length_10_B.d run/l/length_10_C.d run/l/length_10_D.d run/l/length_10_E.d run/l/length_10_F.d run/l/length_10_G.d run/l/length_10_H.d run/l/length_10_I.d run/l/length_10_J.d
diffstat 10 files changed, 234 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_10_A.d	Mon May 15 04:22:42 2006 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<CppCoder@gmail.com>
+// @date@	2006-05-02
+// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.l.length_10_A;
+
+size_t intRes(){
+	return 4;
+}
+
+static const char[] foo = "abc123";
+
+int main(){
+	char c = foo[intRes() % $];
+
+	if(c != '2'){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_10_B.d	Mon May 15 04:22:42 2006 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<CppCoder@gmail.com>
+// @date@	2006-05-02
+// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.l.length_10_B;
+
+size_t intRes(){
+	return 4;
+}
+
+const char[] foo = "abc123";
+
+int main(){
+	char c = foo[intRes() % $];
+
+	if(c != '2'){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_10_C.d	Mon May 15 04:22:42 2006 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<CppCoder@gmail.com>
+// @date@	2006-05-02
+// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.l.length_10_C;
+
+size_t intRes(){
+	return 4;
+}
+
+static char[] foo = "abc123";
+
+int main(){
+	char c = foo[intRes() % $];
+
+	if(c != '2'){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_10_D.d	Mon May 15 04:22:42 2006 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<CppCoder@gmail.com>
+// @date@	2006-05-02
+// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.l.length_10_D;
+
+size_t intRes(){
+	return 4;
+}
+
+char[] foo = "abc123";
+
+int main(){
+	char c = foo[intRes() % $];
+
+	if(c != '2'){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_10_E.d	Mon May 15 04:22:42 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<CppCoder@gmail.com>
+// @date@	2006-05-02
+// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.l.length_10_E;
+
+char[] foo = "abc123";
+
+int main(){
+	char c = foo[4 % $];
+
+	if(c != '2'){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_10_F.d	Mon May 15 04:22:42 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<CppCoder@gmail.com>
+// @date@	2006-05-02
+// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.l.length_10_F;
+
+const char[] foo = "abc123";
+
+int main(){
+	char c = foo[4 % $];
+
+	if(c != '2'){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_10_G.d	Mon May 15 04:22:42 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<CppCoder@gmail.com>
+// @date@	2006-05-02
+// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.l.length_10_G;
+
+static char[] foo = "abc123";
+
+int main(){
+	char c = foo[4 % $];
+
+	if(c != '2'){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_10_H.d	Mon May 15 04:22:42 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<CppCoder@gmail.com>
+// @date@	2006-05-02
+// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.l.length_10_H;
+
+static const char[] foo = "abc123";
+
+int main(){
+	char c = foo[4 % $];
+
+	if(c != '2'){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_10_I.d	Mon May 15 04:22:42 2006 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<CppCoder@gmail.com>
+// @date@	2006-05-02
+// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.l.length_10_I;
+
+size_t intRes(){
+	return 4;
+}
+
+static const char[] foo = "abc123";
+
+int main(){
+	char c = foo[intRes() % length];
+
+	if(c != '2'){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_10_J.d	Mon May 15 04:22:42 2006 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<CppCoder@gmail.com>
+// @date@	2006-05-02
+// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.l.length_10_J;
+
+size_t intRes(){
+	return 4;
+}
+
+static const char[] foo = "abc123";
+
+int main(){
+	char c = foo[intRes() % foo.length];
+
+	if(c != '2'){
+		assert(0);
+	}
+
+	return 0;
+}