Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/931017-1.c

raw
1 /* { dg-additional-options "-fpermissive" } */
2
3 int v;
4
5 main ()
6 {
7 f ();
8 exit (0);
9 }
10
11 h1 ()
12 {
13 return 0;
14 }
15
16 h2 (e)
17 int *e;
18 {
19 if (e != &v)
20 abort ();
21 return 0;
22 }
23
24 g (c)
25 char *c;
26 {
27 int i;
28 int b;
29
30 do
31 {
32 i = h1 ();
33 if (i == -1)
34 return 0;
35 else if (i == 1)
36 h1 ();
37 }
38 while (i == 1);
39
40 do
41 b = h2 (&v);
42 while (i == 5);
43
44 if (i != 2)
45 return b;
46 *c = 'a';
47
48 return 0;
49 }
50
51
52 f ()
53 {
54 char c;
55 g (&c);
56 }