blob: 31f937cab7139273fee9df1a3b94a34a2cf03e0c [file] [log] [blame]
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { 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)));
}