File: case13.ref

package info (click to toggle)
cproto 4.7i-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 912 kB
  • ctags: 663
  • sloc: ansic: 4,098; sh: 3,041; lex: 1,060; yacc: 871; makefile: 307
file content (224 lines) | stat: -rw-r--r-- 3,255 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
/* LINTLIBRARY */

/* case13.c */

static	x2;

typedef int x4t;

char	x6;
short	x7;
int	x8;
long	x9;
float	x10;
double	x11;
signed	x12;
unsigned x13;

struct x14;

union x15;

enum x16;

x4t;

x4t	x17;
const	x18 = {0};
volatile x19;

typedef struct _first {
 int a:5;
 struct {
  int a,b;
 } b_struct;
 char b:16, b1:1; 
 long c:16, c1;
 short d:16, d1:8, d2;
 unsigned e:16;
 float f;
 double g;
 struct _first *link;
 } _FIRST;

typedef int badStyle;

void	badFunc(badStyle)
		int	*badStyle;
		{ /* void */ }

_FIRST	first;
_FIRST	last;
_FIRST	first_last[];
struct _second {
  enum {true, false} bool;
  enum {wrong=1, right=3} values;
 } _SECOND;
int	i[];
float	f[];
int	array[][10][20];

int	dots_0(p1)
		int	p1;
		{ return(*(int *)0); }

	/* VARARGS1 */
int	dots_1(p1)
		int	p1;
		{ return(*(int *)0); }

	/* VARARGS2 */
int	dots_3(p1, p2)
		int	p1;
		char	p2;
		{ return(*(int *)0); }

_FIRST	*func1()
		{ return(*(_FIRST **)0); }

_FIRST	*func2(p1, p2, p)
		_FIRST	*p1;
		int	p2[];
		float	p;
		{ return(*(_FIRST **)0); }

int	*(func_func)();

typedef int bool;

bool	a1;
static bool a2;

struct ZIP1 { int x1, y1; };

struct zip2 { int x2, y2; } z2;
struct { int x3, y3; } z3;

struct ZIP4 { int x4, y4; };

static struct zip5 { int x5, y5; } z5;
static struct zip6 { int x6, y6; } z6;
static struct zip6 { int x6, y6; } w6;
static struct { int x7, y7; } z7;
static struct { int x8, y8; } z8;
static struct { int x8, y8; } w8;
enum zap1 { a,b,c,d } what;
enum zap2 what2;
enum {a9,b9,c9,d9} what3;
static char *zap;

typedef struct bong {
 int (*func)();
 } BONG;

typedef char *string;

void	main(argc, argv)
		int	argc;
		char	**argv;
		{ /* void */ }

	/* VARARGS */
int	veryfunny(a, b, c)
		char	*a;
		long	b;
		long	c;
		{ return(*(int *)0); }

	/* VARARGS3 */
int	program(argv, y, zz, z1, z2, z3)
		string	argv[];
		struct alpha { int x,z; } y;
		int	zz;
		int	z1;
		int	z2;
		int	z3;
		{ return(*(int *)0); }

void	junk0()
		{ /* void */ }

int	junk1()
		{ return(*(int *)0); }

void	junk2()
		{ /* void */ }

int	junk3()
		{ return(*(int *)0); }

BONG	*junk4()
		{ return(*(BONG **)0); }

typedef int extern_junk;

extern_junk *foo()
		{ return(*(extern_junk **)0); }

typedef int void_junk;

void_junk *foo2a()
		{ return(*(void_junk **)0); }

void_junk *foo2()
		{ return(*(void_junk **)0); }

void_junk *foo_void(void_int)
		void_junk void_int;
		{ return(*(void_junk **)0); }

static void_junk *foo_void2()
		{ return(*(void_junk **)0); }

void	(*Sigdisp(sig, func))()
		int	sig;
		void	(*func)();
		{ return(*(void(*)())0); }

void	(*sigdisp2(sig, func))()
		int	sig;
		void	(*func)();
		{ return(*(void(*)())0); }

int	(*K_R_INT_ptr(p1, p2))()
		long	*p1;
		int	p2;
		{ return(*(int(*)())0); }

void	(*K_R_VOID_ptr(p1, p2))()
		long	*p1;
		int	p2;
		{ return(*(void(*)())0); }

int	*K_R_int_ptr(p1, p2)
		long	*p1;
		int	p2;
		{ return(*(int **)0); }

void	*K_R_void_ptr(p1, p2)
		long	*p1;
		int	p2;
		{ return(*(void **)0); }

int	K_R_int_val(p1, p2)
		long	*p1;
		int	p2;
		{ return(*(int *)0); }

int	K_R_int_val2(p1, p2)
		long	*p1;
		int	p2;
		{ return(*(int *)0); }

void	K_R_void_val(p1, p2)
		long	*p1;
		int	p2;
		{ /* void */ }

void	K_R_void_val2(p1, p2)
		long	*p1;
		int	p2;
		{ /* void */ }

long long xxx;
char	*xxs;