Mercurial > projects > dstress
view run/b/bug_template_2851_C.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 | 2203e9c5850e |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Max Samuha <maxter@i.com.ua> // @date@ 2007-02-16 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=969 // @desc@ [Issue 969] 'this' needed for class member module dstress.run.b.bug_template_2851_C; template Tfoo(alias T){ void foo(){ assert(3 == T); } } void bar(alias T)(){ Tfoo!(T).foo(); } class Test{ int a; mixin bar!(a); } int main(){ Test t = new Test(); t.a = 3; t.bar(); return 0; }