blob: bf00d557d7115ed44bf568f29c667a24a24aea2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target fpic } */
/* { 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)));
}
|