view run/i/init_06_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 eb6a99028b95
children
line wrap: on
line source

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

// @author@	Frits van Bommel <fvbommel@wxs.nl>
// @date@	2007-06-12
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1262
// @desc@	[Issue 1262] Local variable of struct type initialized by literal resets when compared to .init

module dstress.run.i.init_06_C;

struct S {
	int x;
}

S s = S(10);

int main() {
	if (s == S.init){
		assert(0);
	}else if(10 != s.x){
		assert(0);
	}

	return 0;
}