1 /* PR debug/50017 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O3 -fcompare-debug" } */ 4 /* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */ 5 6 struct S { int r, i; }; 7 8 void foo(struct S * x,int y)9foo (struct S *x, int y) 10 { 11 int i; 12 for (i = 1; i < y; i++) 13 { 14 struct S a, b, c; 15 a = x[0]; 16 b = x[i]; 17 c.r = a.r * b.r - a.i * b.i; 18 c.i = a.r * b.i + a.i * b.r; 19 x[i] = c; 20 } 21 } 22