300
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Ben Hinkle <ben.hinkle@gmail.com>
|
|
6 // @date@ 2005-03-01
|
|
7 // @uri@ news:d00fr5$17dc$1@digitaldaemon.com
|
|
8 // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3068
|
|
9
|
|
10 module dstress.run.bug_cgcs_353_C;
|
|
11
|
|
12 struct MyStruct {
|
|
13 int opEquals(MyStruct x) {
|
|
14 return this.normalize === x.normalize;
|
|
15 }
|
|
16
|
|
17 MyStruct normalize() {
|
|
18 return s;
|
|
19 }
|
|
20 }
|
|
21
|
|
22 MyStruct s;
|
|
23
|
|
24 int main() {
|
|
25 MyStruct a;
|
|
26 MyStruct b;
|
|
27 assert(a==b);
|
435
|
28 assert(&a!=&b);
|
300
|
29 return 0;
|
435
|
30 }
|