summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/bitfield2.C
blob: aa60d3505783f2934c4b2de51a5d866a652928ba (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/27292

struct A
{
  int i : 8;
};

bool foo(A a)
{
  return int(a.i);
}