view run/t/template_64_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 5e981cf4a7d5
children
line wrap: on
line source

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

// @author@	Christian Kamm <kamm@incasoftware.de>
// @date@	2007-04-24
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=540


module dstress.run.t.template_64_A;

template A(){
	static T foo(T)(T t){
		return t + 1;
	}
}

struct Bar{
	mixin A!() a;
}

int main(){
	if(2 != A!().foo(1)){
		assert(0);
	}
	return 0;
}