view run/m/mixin_30_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 62646ef1013a
children
line wrap: on
line source

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

// @author@	david <davidl@126.com>
// @date@	2007-03-21
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1075
// @desc@	[Issue 1075] dmd reject valid code

module dstress.run.m.mixin_30_B;

int x;

class Outer{
	static const char[] c = "this(){ x += y; }";
	int y;

	class Inner{
		mixin(c);
	}
}

int main(){
	Outer o = new Outer();
	o.y = 3;
	x = 2;
	Outer.Inner i = o.new Inner();

	if(5 != x){
		assert(0);
	}
	return 0;
}