view run/a/assert_18_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 72ecc3d71ef9
children
line wrap: on
line source

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

// @author@	Matti Niemenmaa <deewiant@gmail.com>
// @date@	2006-12-30
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=777
// @desc@	[Issue 777] -inline: assert() with a non-constant message causes code to not compile

module dstress.run.a.assert_18_B;

void foo(char[] bar){
	assert(true, bar);
}

int main(char[][] args){
	foo(args[0]);
	return 0;
}