1 /* PR tree-optimization/36508 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -ftree-pre" } */
4 
5 void
foo(short * sp)6 foo (short *sp)
7 {
8   int k;
9   k = 1;
10 #define SP0 *sp++ = 1;
11   while (1)
12     {
13       if (k > 6)
14 	break;
15       SP0
16       k++;
17     }
18   k = 1;
19   while (1)
20     {
21       if (k > 6)
22 	break;
23       SP0
24       k++;
25     }
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
29 }
30