Mercurial > projects > dstress
changeset 963:1e495c60b3cd
Li Jie <cpunion@gmail.com>
2006-04-11
news:e1fa64$17nq$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 14 Apr 2006 10:24:16 +0000 |
parents | 11a9c6b9a5ed |
children | ff56ed1fd9fd |
files | compile/t/template_35_A.d compile/t/template_35_B.d compile/t/template_35_C.d reporter.txt |
diffstat | 4 files changed, 61 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/t/template_35_A.d Fri Apr 14 10:24:16 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Li Jie <cpunion@gmail.com> +// @date@ 2006-04-11 +// @uri@ news:e1fa64$17nq$1@digitaldaemon.com + +module dstress.compile.t.template_35_A; + +template foo(char[] str){ + const char[] foo = bar!(str); +} + +template bar(char[] str){ + const char[] bar = str; +} + +static assert(foo!("abc") == "abc"): +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/t/template_35_B.d Fri Apr 14 10:24:16 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Li Jie <cpunion@gmail.com> +// @date@ 2006-04-11 +// @uri@ news:e1fa64$17nq$1@digitaldaemon.com + +module dstress.compile.t.template_35_B; + +template foo(char[] str){ + const char foo = bar!(str[1]); +} + +template bar(char c){ + const char bar = c; +} + +static assert(foo!("abc") == 'b'); +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/t/template_35_C.d Fri Apr 14 10:24:16 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Li Jie <cpunion@gmail.com> +// @date@ 2006-04-11 +// @uri@ news:e1fa64$17nq$1@digitaldaemon.com + +module dstress.compile.t.template_35_C; + +template foo(char[] str){ + const char foo = bar!((str[1])); +} + +template bar(char c){ + const char bar = c; +} + +static assert(foo!("abc") == 'b'); +
--- a/reporter.txt Fri Apr 14 10:24:08 2006 +0000 +++ b/reporter.txt Fri Apr 14 10:24:16 2006 +0000 @@ -68,6 +68,7 @@ Kris <fu@bar.com>, <someidiot@earthlink.dot.dot.dot.net> larrycowan Lars Ivar Igesund <larsivar@igesund.net> +Li Jie <cpunion@gmail.com> Lionello Lunesu <lionello.lunesu@crystalinter.remove.com> Lukas Pinkowski <Lukas.Pinkowski@web.de> Manfred Nowak <svv1999@hotmail.com>