2 // { dg-options "-O2 -w" }
3 // egcs-bugs 1999-02-22 14:24 Stefan Schwarzer
4 // sts@ica1.uni-stuttgart.de
5 // optimizer problem in egcs <= 1.1.1
8 XTVec(){x[0]=x[1] =x[2] =0;}
9 XTVec(int ax,int y=0.,int z=0.){x[0]=ax;x[1]=y; x[2]=z; }
16 int & XTVec::operator[](int i){
21 XTVec& operator+=(XTVec& lhs, XTVec& rhs){
29 XTVec operator+(XTVec& lhs, XTVec& rhs){
38 XTVec initsum(ur + ll);
40 // sum of components should be 7
41 return (initsum[0] + initsum[1] + initsum[2] - 7);