Mercurial > projects > dstress
changeset 591:34b3845d0e2a
Nick <Nick_member@pathlink.com>
2005-06-21
news:d99i1h$f70$1@digitaldaemon.com
author | thomask |
---|---|
date | Wed, 22 Jun 2005 11:36:08 +0000 |
parents | 95fa7f1ce1c9 |
children | 0a5d755db2c4 |
files | run/o/opCat_15_A.d run/o/opCat_15_B.d run/o/opCat_15_C.d run/o/opCat_15_D.d run/o/opCat_15_E.d run/o/opCat_15_F.d run/o/opCat_15_G.d run/o/opCat_15_H.d run/o/opCat_15_I.d run/o/opCat_15_J.d run/o/opCat_15_K.d run/o/opCat_15_L.d run/o/opCat_15_M.d run/o/opCat_15_N.d run/o/opCat_15_O.d run/o/opCat_15_P.d run/o/opCat_15_Q.d run/o/opCat_15_R.d run/o/opCat_15_S.d run/o/opCat_15_T.d run/o/opCat_15_U.d |
diffstat | 21 files changed, 483 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_A.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_A; + +int main(){ + bit x=true; + bit[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]); + + x=false; + assert(arr[0]); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_B.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_B; + +int main(){ + byte x=1; + byte[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1); + + x=0; + assert(arr[0]==1); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_C.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_C; + +int main(){ + ubyte x=1; + ubyte[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1); + + x=0; + assert(arr[0]==1); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_D.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_D; + +int main(){ + short x=1; + short[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1); + + x=0; + assert(arr[0]==1); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_E.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_E; + +int main(){ + ushort x=1; + ushort[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1); + + x=0; + assert(arr[0]==1); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_F.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_F; + +int main(){ + int x=1; + int[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1); + + x=0; + assert(arr[0]==1); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_G.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_G; + +int main(){ + uint x=1; + uint[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1); + + x=0; + assert(arr[0]==1); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_H.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_H; + +int main(){ + long x=1; + long[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1); + + x=0; + assert(arr[0]==1); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_I.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_I; + +int main(){ + ulong x=1; + ulong[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1); + + x=0; + assert(arr[0]==1); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_J.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_J; + +int main(){ + float x=1.0; + float[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1.0); + + x=0.0; + assert(arr[0]==1.0); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_K.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_K; + +int main(){ + double x=1.0; + double[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1.0); + + x=0.0; + assert(arr[0]==1.0); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_L.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_L; + +int main(){ + real x=1.0; + real[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1.0); + + x=0.0; + assert(arr[0]==1.0); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_M.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_M; + +int main(){ + ifloat x=1.0i; + ifloat[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1.0i); + + x=0.0i; + assert(arr[0]==1.0i); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_N.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_N; + +int main(){ + idouble x=1.0i; + idouble[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1.0i); + + x=0.0i; + assert(arr[0]==1.0i); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_O.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_O; + +int main(){ + ireal x=1.0i; + ireal[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1.0i); + + x=0.0i; + assert(arr[0]==1.0i); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_P.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_P; + +int main(){ + cfloat x=1.0i+2.0; + cfloat[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1.0i+2.0); + + x=0.0i+5.0; + assert(arr[0]==1.0i+2.0); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_Q.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_Q; + +int main(){ + cdouble x=1.0i+2.0; + cdouble[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1.0i+2.0); + + x=0.0i+5.0; + assert(arr[0]==1.0i+2.0); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_R.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_R; + +int main(){ + creal x=1.0i+2.0; + creal[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]==1.0i+2.0); + + x=0.0i+5.0; + assert(arr[0]==1.0i+2.0); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_S.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_S; + +int main(){ + char x = 'a' + char[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]=='a'); + + x='b'; + assert(arr[0]=='a'); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_T.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_T; + +int main(){ + dchar x = 'a' + dchar[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]=='a'); + + x='b'; + assert(arr[0]=='a'); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_15_U.d Wed Jun 22 11:36:08 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nick <Nick_member@pathlink.com> +// @date@ 2005-06-21 +// @uri@ news:d99i1h$f70$1@digitaldaemon.com + +module dstress.run.o.opCat_15_U; + +int main(){ + wchar x = 'a' + wchar[] arr; + + arr = arr ~ x; + assert(arr.length==1); + assert(arr[0]=='a'); + + x='b'; + assert(arr[0]=='a'); + + return 0; +}