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