aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/abi/bitfield2_x.C
blob: 47b448dda267c36c24a37c12128f76cbe58f0845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-options "-ansi -pedantic-errors -fsigned-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);
}