Mercurial > projects > dstress
changeset 1509:fba3b66d0276
added basic stringof testd
author | thomask |
---|---|
date | Mon, 23 Apr 2007 18:07:38 +0000 |
parents | a41a6cec083a |
children | f0259cabdf78 |
files | compile/s/stringof_02_A.d compile/s/stringof_02_B.d compile/s/stringof_02_C.d compile/s/stringof_02_D.d compile/s/stringof_02_E.d compile/s/stringof_02_F.d compile/s/stringof_02_G.d compile/s/stringof_02_H.d compile/s/stringof_02_I.d |
diffstat | 9 files changed, 75 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/s/stringof_02_A.d Mon Apr 23 18:07:38 2007 +0000 @@ -0,0 +1,7 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.compile.s.stringof_02_A; + +static assert("1" == (1).stringof);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/s/stringof_02_B.d Mon Apr 23 18:07:38 2007 +0000 @@ -0,0 +1,7 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.compile.s.stringof_02_B; + +static assert("4 / 2" == (4 / 2).stringof);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/s/stringof_02_C.d Mon Apr 23 18:07:38 2007 +0000 @@ -0,0 +1,7 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.compile.s.stringof_02_C; + +static assert("Foo" == (Foo).stringof);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/s/stringof_02_D.d Mon Apr 23 18:07:38 2007 +0000 @@ -0,0 +1,7 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.compile.s.stringof_02_D; + +static assert("Foo.bar" == (Foo.bar).stringof);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/s/stringof_02_E.d Mon Apr 23 18:07:38 2007 +0000 @@ -0,0 +1,7 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.compile.s.stringof_02_E; + +static assert("int.max" == (int.max).stringof);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/s/stringof_02_F.d Mon Apr 23 18:07:38 2007 +0000 @@ -0,0 +1,7 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.compile.s.stringof_02_F; + +static assert("bar()" == (bar()).stringof);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/s/stringof_02_G.d Mon Apr 23 18:07:38 2007 +0000 @@ -0,0 +1,11 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.compile.s.stringof_02_G; + +int bar(){ + return 1; +} + +static assert("bar()" == (bar()).stringof);