2 // { dg-options "-ansi -pedantic-errors -funsigned-bitfields" }
4 // Copyright (C) 2001 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 15 Dec 2001 <nathan@codesourcery.com>
8 typedef signed int SInt;
9 typedef unsigned int UInt;
13 SInt bitS : 1; // signed
14 UInt bitU : 1; // unsigned
15 Int bit : 1; // signedness by -f{signed,unsigned}-bitfields
22 a.bitS = 1; // { dg-warning "overflow" }