view run/b/bug_e2ir_1098_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 45dbf7a80237
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Frank Benoit <benoit@tionex.de>
// @date@	2007-02-19
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=986
// @desc@	[Issue 986] Internal error: e2ir.c 1098

module dstress.run.b.bug_e2ir_1098_A;

class Adapter {
	void func(){
	}
}

class Foo {
	class AnonAdapter : Adapter {
	}

	void bar(){
		Adapter a = cast( Adapter )( new AnonAdapter() );
	}
}

int main(){
	Foo f = new Foo();
	f.bar();
	return 0;
}