summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/bitfield6.C
blob: 79664ab7d5fc3f032fb5033d7a0cbcd44d805c52 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/27471

struct A { unsigned a:8; };

extern void b(unsigned char);

void breakme (A f)
{
  b((unsigned char) f.a);
}