* gcc.c-torture/compile/20020910-1.c: New test.

From-SVN: r57007
This commit is contained in:
Richard Earnshaw 2002-09-10 15:44:05 +00:00 committed by Richard Earnshaw
parent 7730c3ff8c
commit 0c11ae2229
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-09-10 Richard Earnshaw <rearnsha@arm.com>
* gcc.c-torture/compile/20020910-1.c: New test.
2002-09-10 Frank Ch. Eigler <fche@redhat.com>
* gcc.c-torture/execute/20010915-1.c: Correct typo in abort call.

View File

@ -0,0 +1,14 @@
unsigned int x0 = 0;
typedef struct {
unsigned int field1 : 20;
unsigned int field2 : 12;
} XX;
static XX yy;
static void foo (void)
{
yy.field1 = (unsigned int ) (&x0);
}