# HG changeset patch # User thomask # Date 1147666962 0 # Node ID 1d695c74f39828c2da285d174e060a14b80e2767 # Parent 2a2fce159e309f6c14ddcebd237c2dbc9fb674a9 2006-05-02 news:bug-123-3@http.d.puremagic.com/bugzilla/ diff -r 2a2fce159e30 -r 1d695c74f398 run/l/length_10_A.d --- /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@ +// @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; +} diff -r 2a2fce159e30 -r 1d695c74f398 run/l/length_10_B.d --- /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@ +// @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; +} diff -r 2a2fce159e30 -r 1d695c74f398 run/l/length_10_C.d --- /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@ +// @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; +} diff -r 2a2fce159e30 -r 1d695c74f398 run/l/length_10_D.d --- /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@ +// @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; +} diff -r 2a2fce159e30 -r 1d695c74f398 run/l/length_10_E.d --- /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@ +// @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; +} diff -r 2a2fce159e30 -r 1d695c74f398 run/l/length_10_F.d --- /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@ +// @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; +} diff -r 2a2fce159e30 -r 1d695c74f398 run/l/length_10_G.d --- /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@ +// @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; +} diff -r 2a2fce159e30 -r 1d695c74f398 run/l/length_10_H.d --- /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@ +// @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; +} diff -r 2a2fce159e30 -r 1d695c74f398 run/l/length_10_I.d --- /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@ +// @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; +} diff -r 2a2fce159e30 -r 1d695c74f398 run/l/length_10_J.d --- /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@ +// @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; +}