2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr45472.c
blob573e83d700c02ab2a346f88f94beab2b06d14100
1 /* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */
2 /* { dg-options "-O -fschedule-insns2 -fselective-scheduling2" } */
4 struct S
6 volatile long vl;
7 int i;
8 };
9 struct S s1, s2;
11 void
12 foo (int j, int c)
14 int i;
15 for (i = 0; i <= j; i++)
17 if (c)
18 s2.vl += s1.vl;
19 s1 = s2;