]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr50017.c
Get rid of dg-skip-if etc. default args
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr50017.c
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
9 foo (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 }