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
gcc/ChangeLog:
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p6611.C
1
// { dg-do run }
2
// prms-id: 6611
3
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;
11
};
12
13
int main(void)
14
{
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;
21
22
for (i = 0; i < 3; i++) {
23
for (j = 0; j < 3; j++) {
24
a[i][j].print();
25
}
26
}
27
}