# HG changeset patch # User thomask # Date 1177351478 0 # Node ID b3b959a6ff7bcdf45aa607ddc9964a3b12a3d384 # Parent b0e88ac8bc7e587f004cf15295da445059a53d08 [Issue 1144] template mixin causes DMD crash Alex 2007-04-14 http://d.puremagic.com/issues/show_bug.cgi?id=1144 diff -r b0e88ac8bc7e -r b3b959a6ff7b nocompile/m/mixin_34_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/m/mixin_34_A.d Mon Apr 23 18:04:38 2007 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Alex +// @date@ 2007-04-14 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1144 +// @desc@ [Issue 1144] template mixin causes DMD crash + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.m.mixin_34_A; + +char[] testHelper(A ...)(){ + char[] result; + foreach(t; a){ + result ~= "int " ~ t ~ ";\n"; + } + return result; +} + +int main(){ + mixin( testHelper!( "hello", "world" )() ); + return 0; +} +