summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/break/bitfield7_y.C
blob: afa5446ae8922f08d3ce082023a6b0d7308ecc46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-options "-w" }

extern "C" void abort (void);

#include "bitfield7.h"

void bitfield7_y (U* u)
{
  if (u[0].i != 7)
    abort ();
  if (u[1].i != 8)
    abort ();
}