Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / rfg17.C
bloba138f9ad908d376012679312085691887d895154
1 // { dg-do assemble  }
2 // The default assignment operator for B uses array assignment, so we can't
3 // just disallow it...
5 struct A { A& operator=(const A&); };
6 struct B { A f[20]; };
8 int a1[20], a2[20];
9 B b1, b2;
11 void
12 test ()
14   b1 = b2;            /* OK */
15   a1 = a2;            /* { dg-error "" } array assignment */