Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr36508.c
blob30489923642aef5fdd124b991de3596d65aa5225
1 /* PR tree-optimization/36508 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -ftree-pre" } */
5 void
6 foo (short *sp)
8 int k;
9 k = 1;
10 #define SP0 *sp++ = 1;
11 while (1)
13 if (k > 6)
14 break;
15 SP0
16 k++;
18 k = 1;
19 while (1)
21 if (k > 6)
22 break;
23 SP0
24 k++;
26 #define SP1 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0
27 #define SP2 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1
28 SP2