OSDN Git Service

For Greta Yorsh.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr44028.c
1 /* PR debug/44028 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -fcompare-debug" } */
4 /* { dg-options "-O3 -fsched-pressure -fschedule-insns -fcompare-debug" { target i?86-*-* x86_64-*-* } } */
5
6 struct S { int val[16]; };
7
8 static inline int
9 bar (struct S x)
10 {
11   long double pc = 0;
12   int i;
13   for (i = 0; i < 16; i++)
14     pc += x.val[i];
15   return pc;
16 }
17
18 int
19 foo (struct S x)
20 {
21   return bar (x);
22 }