Mercurial > projects > dstress
changeset 1507:2846120b9538
[Issue 1143] Assertion failure: '0' on line 850 in 'template.c' - On specialization of IFTI template parameters.
<brunodomedeiros+bugz@gmail.com>
2007-04-14
http://d.puremagic.com/issues/show_bug.cgi?id=1143
author | thomask |
---|---|
date | Mon, 23 Apr 2007 18:05:52 +0000 |
parents | b3b959a6ff7b |
children | a41a6cec083a |
files | nocompile/t/template_61_C.d run/t/template_61_A.d run/t/template_61_B.d |
diffstat | 3 files changed, 56 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_61_C.d Mon Apr 23 18:05:52 2007 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <brunodomedeiros+bugz@gmail.com> +// @date@ 2007-04-14 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1143 +// @desc@ [Issue 1143] Assertion failure: '0' on line 850 in 'template.c' - On specialization of IFTI template parameters. + +// __DSTRESS_ELINE__ 18 + +module dstress.nocompile.t.template_61_C; + +void foo(T, U : float = T)(char[] data, T t){ +} + +int main(){ + foo("abc", 1); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_61_A.d Mon Apr 23 18:05:52 2007 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <brunodomedeiros+bugz@gmail.com> +// @date@ 2007-04-14 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1143 +// @desc@ [Issue 1143] Assertion failure: '0' on line 850 in 'template.c' - On specialization of IFTI template parameters. + +module dstress.run.t.template_61_A; + +void foo(T, U = T)(char[] data, T t){ +} + +int main(){ + foo("abc", 1); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_61_B.d Mon Apr 23 18:05:52 2007 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <brunodomedeiros+bugz@gmail.com> +// @date@ 2007-04-14 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1143 +// @desc@ [Issue 1143] Assertion failure: '0' on line 850 in 'template.c' - On specialization of IFTI template parameters. + +module dstress.run.t.template_61_B; + +void foo(T, U : int = T)(char[] data, T t){ +} + +int main(){ + foo("abc", 1); + return 0; +}