OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p6611.C] - Rev 823

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do run  }
// prms-id: 6611

class COMPLEX {
public:
  COMPLEX(double a, double b=0) { re = a; im = b; }
  void print() const { }
private:
  double re;
  double im;
};

int main(void)
{
  COMPLEX a[3][3] = {
    { 1, COMPLEX(2,3), COMPLEX(3,4), },
    { 1, COMPLEX(2,3), COMPLEX(3,4), },
    { 1, COMPLEX(2,3), COMPLEX(3,4), },
  };
  int i,j;

  for (i = 0; i < 3; i++) {
    for (j = 0; j < 3; j++) {
      a[i][j].print();
    }
  }
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.