Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr104459.c
blobde8a643d9e218f1c4dbb53d59727bee1267b8f51
1 /* PR rtl-optimization/104459 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -funswitch-loops -fno-tree-dce -fcompare-debug -w" } */
5 void
6 foo (int x, int y)
8 unsigned int a;
10 for (;;)
12 short int *p = (short int *) &x;
13 unsigned int q = 0;
15 a /= 2;
16 if (a)
18 q -= y;
19 while (q)
23 if (x)
25 for (q = 0; q != 1; q += 2)
27 unsigned int n;
29 n = *p ? 0 : q;
30 y += n < 1;
32 n = a || *p;
33 if (n % x == 0)
34 y /= x;