view run/bug_cgcs_353_C.d @ 1383:52c9e86b6486

@url@ -> @uri@
author thomask
date Sun, 04 Mar 2007 13:07:35 +0000
parents 32f7f8ce5e51
children d3a3e0c251d8
line wrap: on
line source

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

// @author@	Ben Hinkle <ben.hinkle@gmail.com>
// @date@	2005-03-01
// @uri@	news:d00fr5$17dc$1@digitaldaemon.com
// @uri@	nntp://news.digitalmars.com/digitalmars.D.bugs/3068

module dstress.run.bug_cgcs_353_C;

struct MyStruct {
	int opEquals(MyStruct x) {
		return this.normalize is x.normalize;
	}
	
	MyStruct normalize() {
		return s;
	}
}

MyStruct s;

int main() {
	MyStruct a;
	MyStruct b;
	assert(a==b);
	assert(&a!=&b);
	return 0;
}