blob: 000afd80e04e7cc7d49166d1eb1b3b515f55608b [file] [log] [blame]
// PR c++/79681
// { dg-do compile { target c++14 } }
// { dg-options "-O2" }
struct A
{
int i : 4;
};
constexpr bool
foo ()
{
A x[] = { 1 };
return x[0].i;
}
static_assert (foo(), "");