8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/union1.C
Jason Merrill 1a7a342d99 new
From-SVN: r23435
1998-10-29 16:23:53 -05:00

17 lines
226 B
C

// Build don't link:
class A
{
private:
int myInt;
public:
A& operator = (int right) {myInt = right; return *this;}
};
union B
{
char f1;
A f2; // gets bogus error - non-copy assignment op is OK
};