]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/compat/abi/bitfield2_y.C
2006-04-23 Mark Mitchell <mark@codesourcery.com>
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / compat / abi / bitfield2_y.C
CommitLineData
c0e47fd4 1// { dg-options "-w -ansi -pedantic-errors -fsigned-bitfields" }
1aa14d2c 2
a22c581b 3extern "C" void abort (void);
4
5#include "bitfield1.h"
6
7void bitfield1_y (A& a)
8{
9 if (a.bitS != -1)
10 abort ();
11 if (a.bitU != 1)
12 abort ();
13 if (a.bit != -1)
14 abort ();
15}