Mercurial > projects > dstress
view nocompile/i/inline_18_B.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 | 82f276a0af1f |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Kevin Bealer <kevinbealer@gmail.com> // @date@ 2007-01-30 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=908 // @desc@ [Issue 908] compiler dies trying to inline static method call to nonstatic method in template code. // __DSTRESS_ELINE__ 22 module dstress.nocompile.i.inline_18_B; class C { final uint next(){ return 1; } } template Foo(T) { void bar(){ int r = C.next; } } int main(){ C prng = new C(); alias Foo!(int).bar baz; baz(); return 0; }