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

extern "C" void abort (void);

#include "bitfield1.h"

void bitfield1_y (A& a)
{
  if (a.bitS != -1)
    abort ();
  if (a.bitU != 1)
    abort ();
  if (a.bit != 1)
    abort ();
}