summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/sizeof1.C
blob: 06d5c9993d9866e627cd7c3fb92ef6041a4a9370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/35007

struct AffEntry
{
  union {
    char base[256];
  } conds;
};

struct PfxEntry
: public AffEntry
{
  PfxEntry()
  {
    sizeof(conds.base[0]);
  }
};