view run/p/pragma_msg_01_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 8862d9e3bd3c
children
line wrap: on
line source

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

// @author@	Tyler Knott <tknott@gmail.com>
// @date@	2007-02-22
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=998
// @desc@	[Issue 998] Crash in compile-time functions with pragma(msg,...)

module dstress.run.p.pragma_msg_01_A;

int test(){
	pragma(msg, "Crash!");
	return 2;
}

int main(){
	auto x = test();
	return 0;
}