view run/s/string_postfix_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 36bedfa079e6
children
line wrap: on
line source

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

module dstress.run.s.string_postfix_06_B;

int test(string a){
	return a.length;
}

int test(wstring a){
	return a.length + 100;
}

int test(dstring a){
	return a.length + 10000;
}

int main(){
	assert(test("a"w "b"w)==102);
	return 0;
}