summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/abi/bitfield1.h
blob: 09d64162ff3f423bbd1b94fcc791f7d53d6bd230 (plain)
1
2
3
4
5
6
7
8
9
10
typedef int Int;
typedef signed int SInt;
typedef unsigned int UInt;

struct A
{
  SInt bitS : 1;	// signed
  UInt bitU : 1;	// unsigned
  Int bit : 1;		// signedness by -f{signed,unsigned}-bitfields
};