URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do run }
|
// { dg-do run }
|
// prms-id: 6611
|
// prms-id: 6611
|
|
|
class COMPLEX {
|
class COMPLEX {
|
public:
|
public:
|
COMPLEX(double a, double b=0) { re = a; im = b; }
|
COMPLEX(double a, double b=0) { re = a; im = b; }
|
void print() const { }
|
void print() const { }
|
private:
|
private:
|
double re;
|
double re;
|
double im;
|
double im;
|
};
|
};
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
COMPLEX a[3][3] = {
|
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), },
|
{ 1, COMPLEX(2,3), COMPLEX(3,4), },
|
{ 1, COMPLEX(2,3), COMPLEX(3,4), },
|
{ 1, COMPLEX(2,3), COMPLEX(3,4), },
|
};
|
};
|
int i,j;
|
int i,j;
|
|
|
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
for (j = 0; j < 3; j++) {
|
for (j = 0; j < 3; j++) {
|
a[i][j].print();
|
a[i][j].print();
|
}
|
}
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.