view run/e/expression_4154_C.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 daef239f37cf
children
line wrap: on
line source

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

// @author@	Kazuhiro Inaba <kinaba@is.s.u-tokyo.ac.jp>
// @date@	2006-12-03
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=640
// @desc@	[Issue 640] New: Strage error messages around structInstance.init

module dstress.run.e.expression_4154_C;

struct S {
	int i = 2;
}

int main(){
	const S s = {1};

	S x = s.init;

	if(x.i != 2){
		assert(0);
	}

	return 0;
}