aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/crazy03.c
blob: 042033790a849cde83d339da63ff46f912268338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
extern char a;
extern int b;
extern char *c, *d;
extern void e(void);
extern void f(char *);

int g(int h);
int g(int h)
{
	if (h > 1)
		e();
	if (h > 1)
		return 0;
	for (;;) {
		if (a) {
			while (c) ;
			b = 0;
		} else {
			c = (void*)0;
			b = 1;
		}
		if (b) {
			f(c);
			continue;
		}
		d = c;
		while (*c++) ;
	}
}

/*
 * check-name: crazy03.c
 */