aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/bitfield6.C
blob: 70854ee95888ea5b8c716de567bfbabf7cbf0226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do compile { target c++11 } }

struct A
{
  int : 8;
  int i = 42;
};

constexpr A a;

struct B : A {
};

constexpr B b;

struct C {
  int : 0;
};

constexpr C c;