view run/interface_10.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 52c9e86b6486
children
line wrap: on
line source

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

// @author@	Miguel Ferreira Simões <Kobold@netcabo.pt>
// @date@	2004-12-23
// @uri@	news:cqe7j0$2fl3$1@digitaldaemon.com
// @uri@	nntp://digitalmars.com/digitalmars.D/14003

module dstress.run.interface_10;

interface ITest{
	static int dummy();
}

class Test : ITest{
	static int dummy(){
		return 5;
	}
}

int main(){
	Test t = new Test();
	assert(t.dummy()==5);
	return 0;
}