OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial revision
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p6611.C
1
// prms-id: 6611
2
3
class COMPLEX {
4
public:
5
COMPLEX(double a, double b=0) { re = a; im = b; }
6
void print() const { }
7
private:
8
double re;
9
double im;
10
};
11
12
int main(void)
13
{
14
COMPLEX a[3][3] = {
15
{ 1, COMPLEX(2,3), COMPLEX(3,4), },
16
{ 1, COMPLEX(2,3), COMPLEX(3,4), },
17
{ 1, COMPLEX(2,3), COMPLEX(3,4), },
18
};
19
int i,j;
20
21
for (i = 0; i < 3; i++) {
22
for (j = 0; j < 3; j++) {
23
a[i][j].print();
24
}
25
}
26
}