PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 931017-1.c
blob5917bd95b76daf388039ec17cff89f423435845c
1 int v;
3 main ()
5 f ();
6 exit (0);
9 h1 ()
11 return 0;
14 h2 (e)
15 int *e;
17 if (e != &v)
18 abort ();
19 return 0;
22 g (c)
23 char *c;
25 int i;
26 int b;
30 i = h1 ();
31 if (i == -1)
32 return 0;
33 else if (i == 1)
34 h1 ();
36 while (i == 1);
39 b = h2 (&v);
40 while (i == 5);
42 if (i != 2)
43 return b;
44 *c = 'a';
46 return 0;
50 f ()
52 char c;
53 g (&c);