view run/t/template_57_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 a88dcaf5c0d0
children
line wrap: on
line source

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

// @author@	Lionello Lunesu <lio@lunesu.com>
// @date@	2007-01-24
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=883
// @desc@	[Issue 883] ICE: nested templates with integer arguments

module dstress.run.t.template_57_A;

struct Foo(int I){
	void Bar(int A)(Foo!(A) x ){
	}
}

int main(){
	Foo!(1) x;
	Foo!(1) y;
	x.Bar(y);
	return 0;
}