1extern int array[3];
2extern int matrix[3][3];
3extern int fun(int);
4
5extern int fia(int []);
6extern int fip(int *);
7extern int fim(int (*)[3]);
8extern int fvp(void *);
9extern int ffp(int (*)(int));
10
11void call(void);
12void call(void)
13{
14	fia(array);
15
16	fip(array);
17	fim(matrix);
18
19	fvp(array);
20	fvp(matrix);
21
22	fvp(fun);
23	fvp(&fun);
24	ffp(fun);
25	ffp(&fun);
26}
27
28void local(void);
29void local(void)
30{
31	int *ip;
32	int (*im)[3];
33	void *vp;
34	int (*fp)(int);
35
36	ip = array;
37	im = matrix;
38
39	vp = array;
40	vp = matrix;
41
42	vp = fun;
43	vp = &fun;
44	fp = fun;
45	fp = &fun;
46}
47
48
49extern int *ip;
50extern int (*im)[3];
51extern void *vp;
52extern int (*fp)(int);
53
54void global(void);
55void global(void)
56{
57	ip = array;
58	im = matrix;
59
60	vp = array;
61	vp = matrix;
62
63	vp = fun;
64	vp = &fun;
65	fp = fun;
66	fp = &fun;
67}
68
69/*
70 * check-name: degenerated pointer handling
71 * check-command: sparsec -c $file -o tmp.o
72 */
73