1/* { dg-do compile } */
2/* { dg-require-effective-target fpic } */
3/* { dg-options "-O0 -fpic" } */
4
5static struct {
6  unsigned short a, b, c, d;
7} x[10];
8
9int foo(int i)
10{
11  return ((*((char *)&x[i] + i)) | (*((char *)&x[i] + i)));
12}
13