OSDN Git Service

PR testsuite/52641
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / pr49145.c
1 static int
2 func1 (int a, int b)
3 {
4   return b ? a : a / b;
5 }
6
7 static unsigned char
8 func2 (unsigned char a, int b)
9 {
10   return b ? a : b;
11 }
12
13 int i;
14
15 void
16 func3 (const int arg)
17 {
18   for (i = 0; i != 10; i = foo ())
19     {
20       if (!arg)
21         {
22           int j;
23           for (j = 0; j < 5; j += 1)
24             {
25               int *ptr;
26               *ptr = func2 (func1 (arg, *ptr), foo (arg));
27             }
28         }
29     }
30 }