Mercurial > projects > dstress
changeset 370:2e7e260384a4
AAs with float index
Ben Hinkle <ben.hinkle@gmail.com>
2005-03-25
news:d247b2$mr$1@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 26 Mar 2005 18:36:04 +0000 |
parents | 0192f18b7ff6 |
children | f37683b0277b |
files | run/associative_array_08.d run/associative_array_09.d run/associative_array_10.d run/associative_array_11.d run/associative_array_12.d run/associative_array_13.d run/associative_array_14.d run/associative_array_15.d run/associative_array_16.d run/associative_array_17.d |
diffstat | 10 files changed, 170 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_08.d Sat Mar 26 18:36:04 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle <ben.hinkle@gmail.com> +// @date@ 2005-03-25 +// @uri@ news:d247b2$mr$1@digitaldaemon.com + +module dstress.run.associative_array_08; + +int main() { + int[int] x; + int d=22; + x[d] = 44; + assert( x[d] == 44 ); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_09.d Sat Mar 26 18:36:04 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle <ben.hinkle@gmail.com> +// @date@ 2005-03-25 +// @uri@ news:d247b2$mr$1@digitaldaemon.com + +module dstress.run.associative_array_09; + +int main() { + int[float] x; + float d=22; + x[d] = 44; + assert( x[d] == 44 ); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_10.d Sat Mar 26 18:36:04 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle <ben.hinkle@gmail.com> +// @date@ 2005-03-25 +// @uri@ news:d247b2$mr$1@digitaldaemon.com + +module dstress.run.associative_array_10; + +int main() { + int[real] x; + real d=22; + x[d] = 44; + assert( x[d] == 44 ); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_11.d Sat Mar 26 18:36:04 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle <ben.hinkle@gmail.com> +// @date@ 2005-03-25 +// @uri@ news:d247b2$mr$1@digitaldaemon.com + +module dstress.run.associative_array_11; + +int main() { + int[double] x; + double d=22; + x[d] = 44; + assert( x[d] == 44 ); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_12.d Sat Mar 26 18:36:04 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle <ben.hinkle@gmail.com> +// @date@ 2005-03-25 +// @uri@ news:d247b2$mr$1@digitaldaemon.com + +module dstress.run.associative_array_12; + +int main() { + int[cfloat] x; + cfloat d=22; + x[d] = 44; + assert( x[d] == 44 ); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_13.d Sat Mar 26 18:36:04 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle <ben.hinkle@gmail.com> +// @date@ 2005-03-25 +// @uri@ news:d247b2$mr$1@digitaldaemon.com + +module dstress.run.associative_array_13; + +int main() { + int[cdouble] x; + cdouble d=22; + x[d] = 44; + assert( x[d] == 44 ); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_14.d Sat Mar 26 18:36:04 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle <ben.hinkle@gmail.com> +// @date@ 2005-03-25 +// @uri@ news:d247b2$mr$1@digitaldaemon.com + +module dstress.run.associative_array_14; + +int main() { + int[creal] x; + creal d=22; + x[d] = 44; + assert( x[d] == 44 ); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_15.d Sat Mar 26 18:36:04 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle <ben.hinkle@gmail.com> +// @date@ 2005-03-25 +// @uri@ news:d247b2$mr$1@digitaldaemon.com + +module dstress.run.associative_array_15; + +int main() { + int[ifloat] x; + ifloat d=22i; + x[d] = 44; + assert( x[d] == 44 ); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_16.d Sat Mar 26 18:36:04 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle <ben.hinkle@gmail.com> +// @date@ 2005-03-25 +// @uri@ news:d247b2$mr$1@digitaldaemon.com + +module dstress.run.associative_array_16; + +int main() { + int[idouble] x; + idouble d=22i; + x[d] = 44; + assert( x[d] == 44 ); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_17.d Sat Mar 26 18:36:04 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle <ben.hinkle@gmail.com> +// @date@ 2005-03-25 +// @uri@ news:d247b2$mr$1@digitaldaemon.com + +module dstress.run.associative_array_17; + +int main() { + int[ireal] x; + ireal d=22i; + x[d] = 44; + assert( x[d] == 44 ); + return 0; +} \ No newline at end of file