summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/union1.C
blob: da46096c8c8d2c977d660a2f5aefb2c73299c6ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/15507

struct A {
  // empty
};

struct B : A {
  int b;
};

union U {
  A a;
  B b;
};