Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / opeq3.C
blob1267fafbe4928008609b44e68769a2bd794a4d25
1 // { dg-do assemble  }
2 // Bug: g++ generates code for assignment in invalid situations.
4 class X { // { dg-error "assignment" }
5   int& a;
6 public:
7   X(int& i): a(i) { };
8 };
10 void foo ()
12   int one=1, two=2;
13   X a(one), b(two);
14   a = b;                        // { dg-error "synthesized" }