OSDN Git Service

* g++.dg/eh/spec4.C: Remove stray semicolon.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / opeq3.C
1 // Bug: g++ generates code for assignment in invalid situations.
2 // Build don't link:
3
4 class X {
5   int& a;
6 public:
7   X(int& i): a(i) { };
8 };
9
10 void foo ()
11 {
12   int one=1, two=2;
13   X a(one), b(two);
14   a = b;                        // ERROR - no assignment semantics defined
15 }