summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/abi/bitfield1_x.C
blob: 727632af89d429ae748149d663597d8d2fd81c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-options "-w -ansi -pedantic-errors -funsigned-bitfields" }

#include "bitfield1.h"

extern void bitfield1_y (A& a);

void bitfield1_x ()
{
  A a;

  a.bitS = 1;
  a.bitU = 1;
  a.bit = 1;

  bitfield1_y (a);
}