Mercurial > projects > dstress
view run/t/template_42_A.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | daef239f37cf |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Bruno Medeiros <daiphoenix@lycos.com> // @date@ 2006-08-01 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=274 // @desc@ [Issue 274] Different template alias arguments are treated as the same. module dstress.run.t.template_42_A; class Foo { } class Bar { } template aliastest(alias A) { char[] aliastest() { return (new A!().al).classinfo.name; } } template outerBox(alias A) { template box() { alias A al; } } int main() { if(aliastest!(outerBox!(Foo).box) ()[$-3 .. $] != "Foo"){ assert(0); } if(aliastest!(outerBox!(Bar).box) ()[$-3 .. $] != "Bar"){ assert(0); } return 0; }