Mercurial > projects > dstress
changeset 917:ab71ca67c717
Dave <Dave_member@pathlink.com>
2006-03-18
news:dvgq34$22hv$1@digitaldaemon.com
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/auto_17_A.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.a.auto_17_A; + +const real r = 2.0L; +auto z = r; + +int main(){ + auto x = z; + + static assert(is(x == real)); + + if(x != 2.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/auto_17_B.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.a.auto_17_B; + +auto z = r; +const real r = 2.0L; + +int main(){ + auto x = z; + + static assert(is(x == real)); + + if(x != 2.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/auto_17_C.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.a.auto_17_C; + +auto z = r; +const double r = 2.0; + +int main(){ + auto x = z; + + static assert(is(x == double)); + + if(x != 2.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/auto_17_D.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.a.auto_17_D; + +const double r = 2.0; +auto z = r; + +int main(){ + auto x = z; + + static assert(is(x == double)); + + if(x != 2.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/auto_17_E.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.a.auto_17_E; + +const float r = 2.0f; +auto z = r; + +int main(){ + auto x = z; + + static assert(is(x == float)); + + if(x != 2.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/auto_17_F.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.a.auto_17_F; + +auto z = r; +const float r = 2.0f; + +int main(){ + auto x = z; + + static assert(is(x == float)); + + if(x != 2.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_36_A.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_36_A; + +template T(real r){ + const T = r; +} + +int main(){ + auto x = T!(2); + + static assert(is(x == real)); + + if(x != 2.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_36_B.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_36_B; + +template T(double r){ + const T = r; +} + +int main(){ + auto x = T!(2); + + static assert(is(x == double)); + + if(x != 2.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_36_C.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_36_C; + +template T(float r){ + const T = r; +} + +int main(){ + auto x = T!(2); + + static assert(is(x == float)); + + if(x != 2.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_36_D.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_36_D; + +struct T(float r){ + const z = r; +} + +int main(){ + auto x = T!(2).z; + + static assert(is(x == float)); + + if(x != 2.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_36_E.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_36_E; + +struct T(double r){ + const z = r; +} + +int main(){ + auto x = T!(2).z; + + static assert(is(x == double)); + + if(x != 2.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_36_F.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_36_F; + +struct T(real r){ + const z = r; +} + +int main(){ + auto x = T!(2).z; + + static assert(is(x == real)); + + if(x != 2.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_36_G.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_36_G; + +class T(real r){ + const z = r; +} + +int main(){ + auto x = T!(2).z; + + static assert(is(x == real)); + + if(x != 2.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_36_H.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_36_H; + +class T(double r){ + const z = r; +} + +int main(){ + auto x = T!(2).z; + + static assert(is(x == double)); + + if(x != 2.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_36_I.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_36_I; + +class T(float r){ + const z = r; +} + +int main(){ + auto x = T!(2).z; + + static assert(is(x == float)); + + if(x != 2.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_37_A.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_37_A; + +const real r = 2.0L; +const z = r; + +int main(){ + auto x = z; + + static assert(is(x == real)); + + if(x != 2.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_37_B.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_37_B; + +const z = r; +const real r = 2.0L; + +int main(){ + auto x = z; + + static assert(is(x == real)); + + if(x != 2.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_37_C.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_37_C; + +const z = r; +const double r = 2.0; + +int main(){ + auto x = z; + + static assert(is(x == double)); + + if(x != 2.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_37_D.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_37_D; + +const double r = 2.0; +const z = r; + +int main(){ + auto x = z; + + static assert(is(x == double)); + + if(x != 2.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_37_E.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_37_E; + +const float r = 2.0f; +const z = r; + +int main(){ + auto x = z; + + static assert(is(x == float)); + + if(x != 2.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/const_37_F.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.const_37_F; + +const z = r; +const float r = 2.0f; + +int main(){ + auto x = z; + + static assert(is(x == float)); + + if(x != 2.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/static_36_A.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.static_36_A; + +const real r = 2.0L; +static z = r; + +int main(){ + auto x = z; + + static assert(is(x == real)); + + if(x != 2.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/static_36_B.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.static_36_B; + +static z = r; +const real r = 2.0L; + +int main(){ + auto x = z; + + static assert(is(x == real)); + + if(x != 2.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/static_36_C.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.static_36_C; + +static z = r; +const double r = 2.0; + +int main(){ + auto x = z; + + static assert(is(x == double)); + + if(x != 2.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/static_36_D.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.static_36_D; + +const double r = 2.0; +static z = r; + +int main(){ + auto x = z; + + static assert(is(x == double)); + + if(x != 2.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/static_36_E.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.static_36_E; + +const float r = 2.0f; +static z = r; + +int main(){ + auto x = z; + + static assert(is(x == float)); + + if(x != 2.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/static_36_F.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.c.static_36_F; + +static z = r; +const float r = 2.0f; + +int main(){ + auto x = z; + + static assert(is(x == float)); + + if(x != 2.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_A.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_A; + +template sum(real x){ + static if (x <= 1.0L){ + const real sum = x; + }else{ + const real sum = x + sum!(x - 1.0L); + } +} + +int main(){ + real x = sum!(3.0L); + + if(x != 6.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_B.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_B; + +template sum(real x){ + static if (x <= 1.0L){ + const real sum = x; + }else{ + const real sum = x + sum!(x - 1.0L); + } +} + +int main(){ + real x = sum!(2.0L); + + if(x != 3.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_C.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_C; + +template sum(real x){ + static if (x <= 1.0L){ + const real sum = x; + }else{ + const real sum = x + sum!(x - 1.0L); + } +} + +int main(){ + real x = sum!(1.0L); + + if(x != 1.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_D.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_D; + +template sum(double x){ + static if (x <= 1.0){ + const double sum = x; + }else{ + const double sum = x + sum!(x - 1.0); + } +} + +int main(){ + double x = sum!(1.0); + + if(x != 1.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_E.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_E; + +template sum(double x){ + static if (x <= 1.0){ + const double sum = x; + }else{ + const double sum = x + sum!(x - 1.0); + } +} + +int main(){ + double x = sum!(2.0); + + if(x != 3.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_F.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_F; + +template sum(double x){ + static if (x <= 1.0){ + const double sum = x; + }else{ + const double sum = x + sum!(x - 1.0); + } +} + +int main(){ + double x = sum!(3.0); + + if(x != 6.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_G.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_G; + +template sum(float x){ + static if (x <= 1.0f){ + const float sum = x; + }else{ + const float sum = x + sum!(x - 1.0f); + } +} + +int main(){ + float x = sum!(3.0f); + + if(x != 6.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_H.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_H; + +template sum(float x){ + static if (x <= 1.0f){ + const float sum = x; + }else{ + const float sum = x + sum!(x - 1.0f); + } +} + +int main(){ + float x = sum!(2.0f); + + if(x != 3.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_I.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_I; + +template sum(float x){ + static if (x <= 1.0f){ + const float sum = x; + }else{ + const float sum = x + sum!(x - 1.0f); + } +} + +int main(){ + float x = sum!(1.0f); + + if(x != 1.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_J.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_J; + +template sum(int x){ + static if (x <= 1){ + const int sum = x; + }else{ + const int sum = x + sum!(x - 1); + } +} + +int main(){ + int x = sum!(1); + + if(x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_K.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_K; + +template sum(int x){ + static if (x <= 1){ + const int sum = x; + }else{ + const int sum = x + sum!(x - 1); + } +} + +int main(){ + int x = sum!(2); + + if(x != 3){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_L.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_L; + +template sum(int x){ + static if (x <= 1){ + const int sum = x; + }else{ + const int sum = x + sum!(x - 1); + } +} + +int main(){ + int x = sum!(3); + + if(x != 6){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_M.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_M; + +template sum(ifloat x){ + static if (x <= 1.0fi){ + const ifloat sum = x; + }else{ + const ifloat sum = x + sum!(x - 1.0fi); + } +} + +int main(){ + ifloat x = sum!(3.0fi); + + if(x != 6.0fi){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_N.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_N; + +template sum(ifloat x){ + static if (x <= 1.0fi){ + const ifloat sum = x; + }else{ + const ifloat sum = x + sum!(x - 1.0fi); + } +} + +int main(){ + ifloat x = sum!(2.0fi); + + if(x != 3.0fi){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_O.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_O; + +template sum(ifloat x){ + static if (x <= 1.0fi){ + const ifloat sum = x; + }else{ + const ifloat sum = x + sum!(x - 1.0fi); + } +} + +int main(){ + ifloat x = sum!(1.0fi); + + if(x != 1.0fi){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_P.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_P; + +template sum(idouble x){ + static if (x <= 1.0i){ + const idouble sum = x; + }else{ + const idouble sum = x + sum!(x - 1.0i); + } +} + +int main(){ + idouble x = sum!(1.0i); + + if(x != 1.0i){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_Q.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_Q; + +template sum(idouble x){ + static if (x <= 1.0i){ + const idouble sum = x; + }else{ + const idouble sum = x + sum!(x - 1.0i); + } +} + +int main(){ + idouble x = sum!(2.0i); + + if(x != 3.0i){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_R.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_R; + +template sum(idouble x){ + static if (x <= 1.0i){ + const idouble sum = x; + }else{ + const idouble sum = x + sum!(x - 1.0i); + } +} + +int main(){ + idouble x = sum!(3.0i); + + if(x != 6.0i){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_S.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_S; + +template sum(ireal x){ + static if (x <= 1.0Li){ + const ireal sum = x; + }else{ + const ireal sum = x + sum!(x - 1.0Li); + } +} + +int main(){ + ireal x = sum!(3.0Li); + + if(x != 6.0Li){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_T.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_T; + +template sum(ireal x){ + static if (x <= 1.0Li){ + const ireal sum = x; + }else{ + const ireal sum = x + sum!(x - 1.0Li); + } +} + +int main(){ + ireal x = sum!(2.0Li); + + if(x != 3.0Li){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_32_U.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_32_U; + +template sum(ireal x){ + static if (x <= 1.0Li){ + const ireal sum = x; + }else{ + const ireal sum = x + sum!(x - 1.0Li); + } +} + +int main(){ + ireal x = sum!(1.0Li); + + if(x != 1.0Li){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_33_A.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_33_A; + +template sum(creal x){ + static if (x.re <= 1.0L){ + const creal sum = x; + }else{ + const creal sum = x + sum!(x - 1.0L); + } +} + +int main(){ + creal x = sum!(1.0L); + + if(x != 1.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_33_B.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_33_B; + +template sum(creal x){ + static if (x.re <= 1.0L){ + const creal sum = x; + }else{ + const creal sum = x + sum!(x - 1.0L); + } +} + +int main(){ + creal x = sum!(2.0L); + + if(x != 3.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_33_C.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_33_C; + +template sum(creal x){ + static if (x.re <= 1.0L){ + const creal sum = x; + }else{ + const creal sum = x + sum!(x - 1.0L); + } +} + +int main(){ + creal x = sum!(3.0L); + + if(x != 6.0L){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_33_D.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_33_D; + +template sum(cdouble x){ + static if (x.re <= 1.0){ + const cdouble sum = x; + }else{ + const cdouble sum = x + sum!(x - 1.0); + } +} + +int main(){ + cdouble x = sum!(3.0); + + if(x != 6.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_33_E.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_33_E; + +template sum(cdouble x){ + static if (x.re <= 1.0){ + const cdouble sum = x; + }else{ + const cdouble sum = x + sum!(x - 1.0); + } +} + +int main(){ + cdouble x = sum!(2.0); + + if(x != 3.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_33_F.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_33_F; + +template sum(cdouble x){ + static if (x.re <= 1.0){ + const cdouble sum = x; + }else{ + const cdouble sum = x + sum!(x - 1.0); + } +} + +int main(){ + cdouble x = sum!(1.0); + + if(x != 1.0){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_33_G.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_33_G; + +template sum(cfloat x){ + static if (x.re <= 1.0f){ + const cfloat sum = x; + }else{ + const cfloat sum = x + sum!(x - 1.0f); + } +} + +int main(){ + cfloat x = sum!(1.0f); + + if(x != 1.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_33_H.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_33_H; + +template sum(cfloat x){ + static if (x.re <= 1.0f){ + const cfloat sum = x; + }else{ + const cfloat sum = x + sum!(x - 1.0f); + } +} + +int main(){ + cfloat x = sum!(2.0f); + + if(x != 3.0f){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_33_I.d Sat Mar 18 15:09:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadUR$ +// $Date$ +// $Author$ + +// @author@ Dave <Dave_member@pathlink.com> +// @date@ 2006-03-18 +// @uri@ news:dvgq34$22hv$1@digitaldaemon.com + +module dstress.run.t.template_33_I; + +template sum(cfloat x){ + static if (x.re <= 1.0f){ + const cfloat sum = x; + }else{ + const cfloat sum = x + sum!(x - 1.0f); + } +} + +int main(){ + cfloat x = sum!(3.0f); + + if(x != 6.0f){ + assert(0); + } + + return 0; +}