libstdc++: [_Hashtable] Fix some implementation inconsistencies
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-77771.C
blobfca83d92f6a6d78e25161283a70efdfc64c111ff
1 // PR c++/77771
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-O" }
5 struct S
7   char x[2];
8   unsigned y;
9 };
11 constexpr bool func(const S s)
13     return s.x[0] != 42 || s.x[1] != 0;
16 static_assert(func({{42, 7}, 0}), "");