AVR: target/84211 - Add a post reload register optimization pass.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr56965-1.c
blob2512db3965dd44ab95a5b082eafc0fde30dbbc7d
1 /* { dg-do run } */
2 /* { dg-options "-fschedule-insns" { target scheduling } } */
4 extern void abort (void);
6 struct S {
7 int i;
8 int j;
9 };
11 struct U {
12 struct S s;
13 } __attribute__((may_alias));
15 int __attribute__((noinline,noclone))
16 foo (struct U *p, struct U *q)
18 int i;
19 q->s.j = 1;
20 i = p->s.i;
21 return i;
24 int main()
26 int a[3];
27 int *p = a;
28 p[1] = 0;
29 if (foo ((struct U *)(p + 1), (struct U *)p) != 1)
30 abort ();
31 return 0;