Mercurial > projects > dstress
view compile/m/mangleof_19_D.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | a74f0139fc3d |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Don Clugston <clugdbug@yahoo.com.au> // @date@ 2006-11-16 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=532 // @desc@ [Issue 532] New: Wrong name mangling for template alias params of local vars module dstress.compile.m.mangleof_19_D; template Apple(alias F){ union Basket { } alias void function (Basket) H; const char [] mangledname = H.mangleof; } template Peach(alias A){ const char [] root = Apple!(A).mangledname; static assert(Apple!(A).mangledname == root); } int main(){ int tree; const char[] s = Peach!(tree).root; return 0; }