1 /* { dg-do compile } */
2 /* { dg-options "-O2 -floop-nest-optimize" } */
3 
4 short int *ts;
5 
6 void
c2(unsigned long long int s4,int ns)7 c2 (unsigned long long int s4, int ns)
8 {
9   short int *b2 = (short int *)&ns;
10 
11   while (ns != 0)
12     {
13       int xn;
14 
15       for (xn = 0; xn < 3; ++xn)
16 	for (*b2 = 0; *b2 < 2; ++*b2)
17 	  s4 += xn;
18       if (s4 != 0)
19 	b2 = ts;
20       ++ns;
21     }
22 }
23