Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/union1.C

raw
1 // { dg-do assemble }
2
3 class A
4 {
5 private:
6 int myInt;
7
8 public:
9 A& operator = (int right) {myInt = right; return *this;}
10 };
11
12 union B
13 {
14 char f1;
15 A f2; // { dg-bogus "" } non-copy assignment op is OK
16 };