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