summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/template/bitfield1.C
blob: 9484cb784ed5f7f8f361aa8fe7542c7e99fb34d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/50280

struct S { int bf : 3; };

template<class _T1>
void make_pair(_T1& __x) {}

void foo() {
  const S s = S();
  make_pair(s.bf);
}
OpenPOWER on IntegriCloud