OSDN Git Service

Implement C++11 delegating constructors.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-bitfield.C
1 // PR c++/46369
2 // { dg-options -std=c++0x }
3
4 struct A
5 {
6   unsigned i : 1;
7 };
8
9 constexpr A f() { return { 1 }; }
10 constexpr bool b = (f().i == 1);