Mercurial > projects > dstress
changeset 1099:913919d47a5e
[Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons
Bruno Medeiros <daiphoenix@lycos.com>
2006-07-29
news:bug-271-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Mon, 14 Aug 2006 11:37:56 +0000 |
parents | 19734284b75a |
children | 8d086b9ee28e |
files | run/t/typeid_90_A.d run/t/typeid_90_B.d run/t/typeid_90_C.d run/t/typeid_90_D.d run/t/typeid_90_E.d run/t/typeid_90_F.d run/t/typeid_90_G.d run/t/typeid_90_H.d run/t/typeid_90_I.d run/t/typeid_90_J.d run/t/typeid_90_K.d |
diffstat | 11 files changed, 212 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_A.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_A; + +int main(){ + if((typeid(int) is typeid(int))){ + return 0; + } + + assert(0); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_B.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_B; + +int main(){ + if((typeid(int) !is typeid(int))){ + assert(0); + } + + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_C.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_C; + +int main(){ + if(typeid(int) == typeid(short)){ + assert(0); + } + + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_D.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_D; + +int main(){ + if(typeid(int) != typeid(short)){ + return 0; + } + + assert(0); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_E.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_E; + +int main(){ + if(typeid(int) == typeid(int)){ + return 0; + } + + assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_F.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_F; + +int main(){ + if(typeid(int) != typeid(int)){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_G.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_G; + +import std.stdio; + +int main(char[][] args){ + if(typeid(typeof(typeid(int) == typeid(int))).toString() + != typeid(typeof(args[0].length == args.length)).toString()) + { + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_H.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_H; + +int main(){ + auto ti = typeid(int); + if(ti == typeid(short)){ + assert(0); + } + + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_I.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_I; + +int main(){ + auto ti = typeid(int); + if(ti != typeid(short)){ + return 0; + } + + assert(0); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_J.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_J; + +int main(){ + auto ti = typeid(int); + if(ti == typeid(int)){ + return 0; + } + + assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_90_K.d Mon Aug 14 11:37:56 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <daiphoenix@lycos.com> +// @date@ 2006-07-29 +// @uri@ news:bug-271-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 271] Incorrect constant evaluation of TypeInfo equality comparisons + +module dstress.run.t.typeid_90_K; + +int main(){ + auto ti = typeid(int); + if(ti != typeid(int)){ + assert(0); + } + + return 0; +}