Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr48335-5.c
blobb1895484dc9d699cb2fdfb2b903956f56a9dac04
1 /* PR middle-end/48335 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-tree-sra" } */
5 typedef long long T __attribute__((may_alias));
7 struct S
9 _Complex float d __attribute__((aligned (8)));
12 int
13 f1 (struct S x)
15 struct S s = x;
16 return *(T *) &s.d;
19 int
20 f2 (struct S x)
22 struct S s = x;
23 return *(char *) &s.d;
26 int
27 f3 (struct S x)
29 struct S s = x;
30 return ((char *) &s.d)[2];
33 int
34 f4 (struct S x, int y)
36 struct S s = x;
37 return ((char *) &s.d)[y];