repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
init
/
array18.C
blob
154d03fcff8f2fc32184a505b1f6e77b22f10015
1
// PR c++/20142
2
// { dg-do run }
3
4
int n=4;
5
6
struct A
7
{
8
A() {}
9
A& operator= (const A&) { --n; return *this; }
10
};
11
12
struct B
13
{
14
A x[2][2];
15
};
16
17
int main()
18
{
19
B b;
20
b = b;
21
return n;
22
}