8sa1-gcc/gcc/testsuite/gcc.dg/20000904-1.c
Jakub Jelinek e0cb4f3652 * gcc.dg/20000904-1.c: New test.
From-SVN: r36130
2000-09-04 12:13:34 +02:00

12 lines
212 B
C

/* { dg-do compile { target i?86-*-* } } */
/* { dg-options "-O0 -fpic" } */
static struct {
unsigned short a, b, c, d;
} x[10];
int foo(int i)
{
return ((*((char *)&x[i] + i)) | (*((char *)&x[i] + i)));
}