blob: 6573b4d055f0b5a48eefe2c6d341a9e1248176c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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
};
|