URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p6611.C] - Rev 414
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