c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-79681-1.C
blob000afd80e04e7cc7d49166d1eb1b3b515f55608b
1 // PR c++/79681
2 // { dg-do compile { target c++14 } }
3 // { dg-options "-O2" }
5 struct A
7   int i : 4;
8 };
10 constexpr bool
11 foo ()
13   A x[] = { 1 };
14   return x[0].i;
17 static_assert (foo(), "");