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
|
1384
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3068
|
300
|
9
|
|
10 module dstress.run.bug_cgcs_353_C;
|
|
11
|
|
12 struct MyStruct {
|
|
13 int opEquals(MyStruct x) {
|
570
|
14 return this.normalize is x.normalize;
|
300
|
15 }
|
|
16
|
|
17 MyStruct normalize() {
|
|
18 return s;
|
|
19 }
|
|
20 }
|
|
21
|
|
22 MyStruct s;
|
|
23
|
|
24 int main() {
|
|
25 MyStruct a;
|
|
26 MyStruct b;
|
1559
|
27 if(b != a){
|
|
28 assert(0);
|
|
29 }
|
435
|
30 assert(&a!=&b);
|
300
|
31 return 0;
|
435
|
32 }
|