libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gcc.dg / pr41033.c
blob5043be2d1191394101266ccdc0dd990a66f3c669
1 /* { dg-options "-O1 -fno-strict-aliasing" } */
2 /* PR rtl-optimization/41033 */
4 struct X {
5 int i;
6 int j;
7 };
9 int foo(struct X *p, struct X *q)
11 p->j = 1;
12 q->i = 0;
13 return p->j;
16 extern void abort (void);
18 int main()
20 struct X x;
21 if (foo (&x, (struct X *)&x.j) != 0)
22 abort ();
23 return 0;