Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/constexpr-79681-1.C

raw
1 // PR c++/79681
2 // { dg-do compile { target c++14 } }
3 // { dg-options "-O2" }
4
5 struct A
6 {
7 int i : 4;
8 };
9
10 constexpr bool
11 foo ()
12 {
13 A x[] = { 1 };
14 return x[0].i;
15 }
16
17 static_assert (foo(), "");