pr33860a.cc

来自「用于进行gcc测试」· CC 代码 · 共 26 行

CC
26
字号
/* { dg-do compile } *//* Testcase by Martin Michlmayr <tbm@cyrius.com> */class Matrix{  public:    float data[4][4] __attribute__ ((__aligned__(16)));    Matrix operator* (const Matrix matrix) const;    void makeRotationAboutVector (void);};void Matrix::makeRotationAboutVector (void){   Matrix irx;   *this = irx * (*this);}Matrix Matrix::operator* (const Matrix matrix) const{  Matrix ret;  for (int i = 0; i < 4; i++)    for (int j = 0; j < 4; j++)      ret.data[j][i] = matrix.data[j][2] + matrix.data[j][3];  return ret;}/* { dg-final { cleanup-tree-dump "vect" } } */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?