2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20010129-1.c
bloba4ea5e4d97ecd3496f2364ed6b45a8c0bfbc0e94
1 long baz1 (void *a)
3 static long l;
4 return l++;
7 int baz2 (const char *a)
9 return 0;
12 int baz3 (int i)
14 if (!i)
15 abort ();
16 return 1;
19 void **bar;
21 int foo (void *a, long b, int c)
23 int d = 0, e, f = 0, i;
24 char g[256];
25 void **h;
27 g[0] = '\n';
28 g[1] = 0;
30 while (baz1 (a) < b) {
31 if (g[0] != ' ' && g[0] != '\t') {
32 f = 1;
33 e = 0;
34 if (!d && baz2 (g) == 0) {
35 if ((c & 0x10) == 0)
36 continue;
37 e = d = 1;
39 if (!((c & 0x10) && (c & 0x4000) && e) && (c & 2))
40 continue;
41 if ((c & 0x2000) && baz2 (g) == 0)
42 continue;
43 if ((c & 0x1408) && baz2 (g) == 0)
44 continue;
45 if ((c & 0x200) && baz2 (g) == 0)
46 continue;
47 if (c & 0x80) {
48 for (h = bar, i = 0; h; h = (void **)*h, i++)
49 if (baz3 (i))
50 break;
52 f = 0;
55 return 0;
58 int main ()
60 void *n = 0;
61 bar = &n;
62 foo (&n, 1, 0xc811);
63 exit (0);