# HG changeset patch # User thomask # Date 1099028929 0 # Node ID f027da128dd8b5e9b2d27e28c702301afe3321ba # Parent fecc79e23cd8f20e13943cd0172789a5a53ce87f tetsuya / news://ckrq8ecnl@digitaldaemon.com / nttp://digitalmars.com/digitalmars.D.bugs:2121 diff -r fecc79e23cd8 -r f027da128dd8 run/overload_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_08.d Fri Oct 29 05:48:49 2004 +0000 @@ -0,0 +1,25 @@ +// @author@ tetsuya +// @dateq@ 2004-10-16 +// @uri@ news://ckrq8e$1cnl$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2121 + +module dstress.run.overload_08; + +int test(real a, real b){ + assert(0); + return 1; +} + +int test(real a, int b){ + assert(0); + return 2; +} + +int test(real a, uint b){ + return 3; +} + +int main(){ + assert(test(5.0, 6u)==3); + return 0; +} diff -r fecc79e23cd8 -r f027da128dd8 run/overload_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_09.d Fri Oct 29 05:48:49 2004 +0000 @@ -0,0 +1,25 @@ +// @author@ tetsuya +// @dateq@ 2004-10-16 +// @uri@ news://ckrq8e$1cnl$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2121 + +module dstress.run.overload_09; + +int test(real a, real b){ + assert(0); + return 1; +} + +int test(real a, int b){ + assert(0); + return 2; +} + +int test(real a, uint b){ + return 3; +} + +int main(){ + assert(test(5.0, cast(uint)6)==3); + return 0; +} diff -r fecc79e23cd8 -r f027da128dd8 run/overload_10.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_10.d Fri Oct 29 05:48:49 2004 +0000 @@ -0,0 +1,25 @@ +// @author@ tetsuya +// @dateq@ 2004-10-16 +// @uri@ news://ckrq8e$1cnl$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2121 + +module dstress.run.overload_10; + +int test(real a, real b){ + assert(0); + return 1; +} + +int test(real a, int b){ + assert(0); + return 2; +} + +int test(real a, uint b){ + return 3; +} + +int main(){ + assert(test(5.0, cast(uint)(6))==3); + return 0; +} diff -r fecc79e23cd8 -r f027da128dd8 run/overload_11.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_11.d Fri Oct 29 05:48:49 2004 +0000 @@ -0,0 +1,26 @@ +// @author@ tetsuya +// @dateq@ 2004-10-16 +// @uri@ news://ckrq8e$1cnl$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2121 + +module dstress.run.overload_11; + +int test(real a, real b){ + assert(0); + return 1; +} + +int test(real a, int b){ + assert(0); + return 2; +} + +int test(real a, uint b){ + return 3; +} + +int main(){ + uint uInt = 6; + assert(test(5.0, uInt)==3); + return 0; +}