view run/b/bug_toir_182_E.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 ab0e4691f71e
children
line wrap: on
line source

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

// @author@	Johan Granberg <lijat.me@gmail.com>
// @date@	2007-01-17
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=853
// @desc@	[Issue 853] Internal error: toir.c 182

module dstress.run.b.bug_toir_182_E;

class StackContext{
	this(void delegate() dg){
	}
}

class Test{
	StackContext context;

	private this(){
		context = new StackContext({});
	}
}

int main(){
	Test t = new Test();
	if(!t){
		assert(0);
	}
	if(!t.context){
		assert(0);
	}
	return 0;
}