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

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

// @author@	Ant^2i <Ant^2i_member@pathlink.com>
// @date@	2005-07-04
// @uri@	news:dabjsi$16h8$1@digitaldaemon.com
// @desc@	toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed

module dstress.run.b.bug_toobj_191_F;

struct Outer(T){
	Inner i;

	struct Inner{
		T t;
	}
}

int main(){
	Outer!(int)* o=new Outer!(int);
	assert(typeid(typeof(o.i.t))==typeid(int));
	return 0;
}