blob: 9a2a28ed174be5ac5b9e4f81cdd3a393c592e025 [file] [log] [blame]
// { 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();
}
}
}