Mercurial > projects > dstress
view run/bug_cgcs_353_C.d @ 570:32f7f8ce5e51
updated "===" -> "is" and "!==" to "!(...===...)"
author | thomask |
---|---|
date | Wed, 08 Jun 2005 17:49:15 +0000 |
parents | ec6d35cccfb5 |
children | 52c9e86b6486 |
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 // @url@ 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; }