view complex/assert_21/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 6caf8b7e726a
children
line wrap: on
line source

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

// @author@	Jarrett Billingsley <jarrett.billingsley@gmail.com>
// @date@	2007-04-10
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1121
// @desc@	[Issue 1121] Assertion codegen issue with templated function

import b;

int main(){
	try{
		foo();
		func!(void)();
	}catch(Exception e){
		if("AssertError Failure b.d(13) GO" == e.toString()){
			return 0;
		}
	}

	assert(0);
}