view norun/d/debug_info_08_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 30ad3655b9b0
children
line wrap: on
line source

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

// @author@	Thomas Kühne <thomas-dloop@kuehne.THISISSPAM.cn>
// @date@	2005-08-01
// @uri@	news:dcl3e6$2hjr$1@digitaldaemon.com

// __DSTRESS_TORTURE_REQUIRE__ -g
// __GDB_SCRIPT__ run\nbacktrace
// __GDB_PATTERN__ SIGFPE.*debug_info_08_B[.]d:21

module dstress.norun.d.debug_info_08_B;
 
void dummy(int i){
} 

int main(){
	int a=2;
	dummy(a);
	a=a/(a-2); /* divide by zero */
	dummy(a);
	return 0;
}