Add compile command to each testcase
[gcc-vect-testsuite.git] / pr33860.cc
blobe70ec674eae6d4f6100c6bf0e175b18aba746da7
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;
25 /* { dg-final { cleanup-tree-dump "vect" } } */