2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44028.c
blob33452172bd76a07ea8650296dcca80effd13a34a
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-*-* } } */
6 struct S { int val[16]; };
8 static inline int
9 bar (struct S x)
11 long double pc = 0;
12 int i;
13 for (i = 0; i < 16; i++)
14 pc += x.val[i];
15 return pc;
18 int
19 foo (struct S x)
21 return bar (x);