Mercurial > projects > dstress
changeset 409:a2efbcabdf5d
structs: opCmp/opEquals
Uwe Salomon <post@uwesalomon.de>
2005-04-08
news:opsow0pmwb6yjbe6@sandmann.maerchenwald.net
author | thomask |
---|---|
date | Fri, 08 Apr 2005 15:28:59 +0000 |
parents | 2c633bfee24b |
children | 537363a856bf |
files | nocompile/opCmp_04.d nocompile/opEquals_03.d run/opCmp_03.d run/opEquals_01.d |
diffstat | 4 files changed, 82 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/opCmp_04.d Fri Apr 08 15:28:59 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Uwe Salomon <post@uwesalomon.de> +// @date@ 2005-04-08 +// @uri@ news:opsow0pmwb6yjbe6@sandmann.maerchenwald.net + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.opCmp_04; + +struct TestStruct{ + int opCmp(TestStruct[] t){ // no overload for TestStruct present + return 0; + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/opEquals_03.d Fri Apr 08 15:28:59 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Uwe Salomon <post@uwesalomon.de> +// @date@ 2005-04-08 +// @uri@ news:opsow0pmwb6yjbe6@sandmann.maerchenwald.net + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.opEquals_03; + +struct TestStruct{ + int opEquals(TestStruct[] t){ // no overload for TestStruct present + return 0; + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opCmp_03.d Fri Apr 08 15:28:59 2005 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Uwe Salomon <post@uwesalomon.de> +// @date@ 2005-04-08 +// @uri@ news:opsow0pmwb6yjbe6@sandmann.maerchenwald.net + +module dstress.run.opCmp_03; + +struct TestStruct{ + int opCmp(TestStruct[] t){ + return 0; + } + + int opCmp(TestStruct t){ + return 0; + } +} + +int main(){ + TypeInfo ti = typeid(TestStruct); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opEquals_01.d Fri Apr 08 15:28:59 2005 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Uwe Salomon <post@uwesalomon.de> +// @date@ 2005-04-08 +// @uri@ news:opsow0pmwb6yjbe6@sandmann.maerchenwald.net + +module dstress.run.opEquals_01; + +struct TestStruct{ + int opEquals(TestStruct[] t){ + return 0; + } + + int opEquals(TestStruct t){ + return 0; + } +} + +int main(){ + TypeInfo ti = typeid(TestStruct); + return 0; +}