summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield.C
blob: 7eba49833f27f0a22472ac576cefbc7e950fd2f5 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/46369
// { dg-options -std=c++0x }

struct A
{
  unsigned i : 1;
};

constexpr A f() { return { 1 }; }
constexpr bool b = (f().i == 1);
OpenPOWER on IntegriCloud