* gcc.dg/bitfld-6.c: New test.

From-SVN: r59573
This commit is contained in:
Richard Sandiford 2002-11-27 15:17:31 +00:00 committed by Richard Sandiford
parent 1dc46545cb
commit 6331370066
2 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2002-11-27 Richard Sandiford <rsandifo@redhat.com>
* gcc.dg/bitfld-6.c: New test.
Wed Nov 27 14:37:34 CET 2002 Jan Hubicka <jh@suse.cz>
* gcc.c-torture/execute/20021127.[cx]: New test.

View file

@ -0,0 +1,16 @@
/* { dg-options "" } */
#include <limits.h>
struct s
{
int i1 : sizeof (int) * CHAR_BIT;
int i2 : sizeof (int) * CHAR_BIT;
int i3 : sizeof (int) * CHAR_BIT;
int i4 : sizeof (int) * CHAR_BIT;
int i5 : sizeof (int) * CHAR_BIT;
int i6 : sizeof (int) * CHAR_BIT;
int i7 : sizeof (int) * CHAR_BIT;
int i8 : sizeof (int) * CHAR_BIT;
};
int f[sizeof (struct s) != sizeof (int) * 8 ? -1 : 1];