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

struct A
{
  int i : 1;
};

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