Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield.C

raw
1 // PR c++/46369
2 // { dg-do compile { target c++11 } }
3
4 struct A
5 {
6 unsigned i : 1;
7 };
8
9 constexpr A f() { return { 1 }; }
10 constexpr bool b = (f().i == 1);