Merge with main truk.
[official-gcc.git] / gcc / testsuite / g++.dg / init / array18.C
blob154d03fcff8f2fc32184a505b1f6e77b22f10015
1 // PR c++/20142
2 // { dg-do run }
4 int n=4;
6 struct A
8   A() {}
9   A& operator= (const A&) { --n; return *this; }
12 struct B
14   A x[2][2];
17 int main()
19   B b;
20   b = b;
21   return n;