Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr103721.c
blob6ec2e44b30f1cc2155373415c6576e35cac1c7f9
1 // { dg-do run }
2 // { dg-options "-O2" }
4 int ipos = 0;
5 int f (int world)
7 int searchVolume = world;
8 int currentVolume = 0;
9 while (currentVolume != searchVolume && searchVolume) {
10 currentVolume = searchVolume;
11 if (ipos != 0)
12 searchVolume = 0;
13 else
14 searchVolume = 1;
16 return (currentVolume);
18 int main()
20 const int i = f (1111);
21 __builtin_printf ("%d\n", (int)(i));
22 if (i != 1)
23 __builtin_abort ();
24 return 0;