Mercurial > projects > dstress
changeset 537:3adc074d1969
typeid & opEquals (2)
Burton Radons <burton-radons@smocky.com>
2005-05-08
news:d5lotd$29j1$1@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 14 May 2005 06:13:13 +0000 |
parents | 37f34f030c21 |
children | 5320be2851e8 |
files | run/t/typeid_86_D.d run/t/typeid_86_E.d |
diffstat | 2 files changed, 38 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_86_D.d Sat May 14 06:13:13 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Burton Radons <burton-radons@smocky.com> +// @date@ 2005-05-08 +// @uri@ news:d5lotd$29j1$1@digitaldaemon.com + +module dstress.run.t.typeid_86_D; + +int main(){ + assert(typeid(int function(float)) != typeid(int function(char))); + assert(typeid(int function(float)) != typeid(byte function(float))); + assert(typeid(byte function(byte)) != typeid(byte function(int))); + assert(typeid(void function(int)) != typeid(int function(int))); + assert(typeid(int function()) != typeid(int function(int))); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeid_86_E.d Sat May 14 06:13:13 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Burton Radons <burton-radons@smocky.com> +// @date@ 2005-05-08 +// @uri@ news:d5lotd$29j1$1@digitaldaemon.com + +module dstress.run.t.typeid_86_E; + +int main(){ + assert(typeid(int delegate(float)) != typeid(int delegate(char))); + assert(typeid(int delegate(float)) != typeid(byte delegate(float))); + assert(typeid(byte delegate(byte)) != typeid(byte delegate(int))); + assert(typeid(void delegate(int)) != typeid(int delegate(int))); + assert(typeid(int delegate()) != typeid(int delegate(int))); + + return 0; +}