1// { dg-do assemble  }
2// The default assignment operator for B uses array assignment, so we can't
3// just disallow it...
4
5struct A { A& operator=(const A&); };
6struct B { A f[20]; };
7
8int a1[20], a2[20];
9B b1, b2;
10
11void
12test ()
13{
14  b1 = b2;	      /* OK */
15  a1 = a2;	      /* { dg-error "" } array assignment */
16}
17