PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / vect / pr33860.cc
blob85084700c2f7b5a8d31bd876bb161c5b34efdb40
1 /* { dg-do compile } */
2 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
4 class Matrix
6 public:
7 double data[4][4];
8 Matrix operator* (const Matrix matrix) const;
9 void makeRotationAboutVector (void);
11 void Matrix::makeRotationAboutVector (void)
13 Matrix irx;
14 *this = irx * (*this);
16 Matrix Matrix::operator* (const Matrix matrix) const
18 Matrix ret;
19 for (int i = 0; i < 4; i++)
20 for (int j = 0; j < 4; j++)
21 ret.data[j][i] = matrix.data[j][2] + matrix.data[j][3];
22 return ret;