view run/f/function_06_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 e6887749b811
children
line wrap: on
line source

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

// @author@	<dvdfrdmn@users.sf.net>
// @date@	2006-05-27
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=157

module dstress.run.f.function_06_B;

int function(int)[1] table;

int main() {
	table[0] = function int(int x) {
			return x + 99;
		};

	if(table[0](1) != 100){
		assert(0);
	}

	return 0;
}