summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/rv-bitfield2.C
blob: e054151b056bd96c12d7d05be48f2e153ede048f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/51868
// { dg-options -std=c++0x }

struct A {
  A() {}
  A(const A&) {}
  A(A&&) {}
};

struct B {
  A a;
  int f : 1;
};

B func() {
  return B();
}