☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
union1.C
☽
☼
gcc/testsuite/g++.old-deja/g++.other/union1.C
code
plain
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
};