summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/rv-bitfield.C
blob: ed866f9e1f37f595cdb7beb15dc86153c8ee0947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options -std=c++0x }

struct A
{
  int i : 1;
};

int main()
{
  A a;
  static_cast<int&&>(a.i);
}