FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / union1.C
blob6573b4d055f0b5a48eefe2c6d341a9e1248176c7
1 // Build don't link:
3 class A
5   private:
6     int myInt;
8   public:
9     A& operator = (int right) {myInt = right; return *this;}
12 union B
14     char f1;
15     A    f2;   // gets bogus error - non-copy assignment op is OK