summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/anon8.C
blob: fb26d73132e2718c061a66d0ebc9cfb8b378a4cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }

struct B
{
  int a;
  B & operator= (const B &);
};

struct A
{
  union {
    int a;
  };
  B b;
};

A x;

void foo (const A &y)
{
  x = y;
}