2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p6611.C
blob9a2a28ed174be5ac5b9e4f81cdd3a393c592e025
1 // { dg-do run  }
2 // prms-id: 6611
4 class COMPLEX {
5 public:
6   COMPLEX(double a, double b=0) { re = a; im = b; }
7   void print() const { }
8 private:
9   double re;
10   double im;
13 int main(void)
15   COMPLEX a[3][3] = {
16     { 1, COMPLEX(2,3), COMPLEX(3,4), },
17     { 1, COMPLEX(2,3), COMPLEX(3,4), },
18     { 1, COMPLEX(2,3), COMPLEX(3,4), },
19   };
20   int i,j;
22   for (i = 0; i < 3; i++) {
23     for (j = 0; j < 3; j++) {
24       a[i][j].print();
25     }
26   }