view compile/o/opCat_26_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 f1c494dc588a
children
line wrap: on
line source

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

// @author@	John S. Skogtvedt <teleledningsanka@gmail.com>
// @date@	2007-02-18
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=980
// @desc@	[Issue 980] If a function tries to concatenate a char to a empty array, dmd complains that the function can't be evaluated at compile time

module dstress.compile.o.opCat_26_B;

char[] test(){
	char[] s = "a";
	return s ~ "o";
}

const x = test();
static assert(x == "ao");