Add missing includes to sysdeps/generic/malloc-sysdep.h.
[glibc.git] / dlfcn / bug-atexit1-lib.c
blob715bb40b236a8879c4cbb3586416463fb1c0a4eb
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <unistd.h>
5 static int next;
7 void
8 f00 (void)
10 puts ("f00");
11 if (next-- != 0)
12 _exit (1);
15 void
16 f01 (void)
18 puts ("f01");
19 if (next-- != 1)
20 _exit (1);
23 void
24 f02 (void)
26 puts ("f02");
27 if (next-- != 2)
28 _exit (1);
31 void
32 f03 (void)
34 puts ("f03");
35 if (next-- != 3)
36 _exit (1);
39 void
40 f04 (void)
42 puts ("f04");
43 if (next-- != 4)
44 _exit (1);
47 void
48 f05 (void)
50 puts ("f05");
51 if (next-- != 5)
52 _exit (1);
55 void
56 f06 (void)
58 puts ("f06");
59 if (next-- != 6)
60 _exit (1);
63 void
64 f07 (void)
66 puts ("f07");
67 if (next-- != 7)
68 _exit (1);
71 void
72 f08 (void)
74 puts ("f08");
75 if (next-- != 8)
76 _exit (1);
79 void
80 f09 (void)
82 puts ("f09");
83 if (next-- != 9)
84 _exit (1);
87 void
88 f10 (void)
90 puts ("f10");
91 if (next-- != 10)
92 _exit (1);
95 void
96 f11 (void)
98 puts ("f11");
99 if (next-- != 11)
100 _exit (1);
103 void
104 f12 (void)
106 puts ("f12");
107 if (next-- != 12)
108 _exit (1);
111 void
112 f13 (void)
114 puts ("f13");
115 if (next-- != 13)
116 _exit (1);
119 void
120 f14 (void)
122 puts ("f14");
123 if (next-- != 14)
124 _exit (1);
127 void
128 f15 (void)
130 puts ("f15");
131 if (next-- != 15)
132 _exit (1);
135 void
136 f16 (void)
138 puts ("f16");
139 if (next-- != 16)
140 _exit (1);
143 void
144 f17 (void)
146 puts ("f17");
147 if (next-- != 17)
148 _exit (1);
151 void
152 f18 (void)
154 puts ("f18");
155 if (next-- != 18)
156 _exit (1);
159 void
160 f19 (void)
162 puts ("f19");
163 if (next-- != 19)
164 _exit (1);
167 void
168 f20 (void)
170 puts ("f20");
171 if (next-- != 20)
172 _exit (1);
175 void
176 f21 (void)
178 puts ("f21");
179 if (next-- != 21)
180 _exit (1);
183 void
184 f22 (void)
186 puts ("f22");
187 if (next-- != 22)
188 _exit (1);
191 void
192 f23 (void)
194 puts ("f23");
195 if (next-- != 23)
196 _exit (1);
199 void
200 f24 (void)
202 puts ("f24");
203 if (next-- != 24)
204 _exit (1);
207 void
208 f25 (void)
210 puts ("f25");
211 if (next-- != 25)
212 _exit (1);
215 void
216 f26 (void)
218 puts ("f26");
219 if (next-- != 26)
220 _exit (1);
223 void
224 f27 (void)
226 puts ("f27");
227 if (next-- != 27)
228 _exit (1);
231 void
232 f28 (void)
234 puts ("f28");
235 if (next-- != 28)
236 _exit (1);
239 void
240 f29 (void)
242 puts ("f29");
243 if (next-- != 29)
244 _exit (1);
247 void
248 f30 (void)
250 puts ("f30");
251 if (next-- != 30)
252 _exit (1);
255 void
256 f31 (void)
258 puts ("f31");
259 if (next-- != 31)
260 _exit (1);
263 void
264 f32 (void)
266 puts ("f32");
267 if (next-- != 32)
268 _exit (1);
271 void
272 f33 (void)
274 puts ("f33");
275 if (next-- != 33)
276 _exit (1);
279 void
280 f34 (void)
282 puts ("f34");
283 if (next-- != 34)
284 _exit (1);
287 void
288 f35 (void)
290 puts ("f35");
291 if (next-- != 35)
292 _exit (1);
295 void
296 f36 (void)
298 puts ("f36");
299 if (next-- != 36)
300 _exit (1);
303 void
304 f37 (void)
306 puts ("f37");
307 if (next-- != 37)
308 _exit (1);
311 void
312 f38 (void)
314 puts ("f38");
315 if (next-- != 38)
316 _exit (1);
319 void
320 f39 (void)
322 puts ("f39");
323 if (next-- != 39)
324 _exit (1);
327 void
328 foo (void)
330 atexit (f00);
331 atexit (f01);
332 atexit (f02);
333 atexit (f03);
334 atexit (f04);
335 atexit (f05);
336 atexit (f06);
337 atexit (f07);
338 atexit (f08);
339 atexit (f09);
341 atexit (f10);
342 atexit (f11);
343 atexit (f12);
344 atexit (f13);
345 atexit (f14);
346 atexit (f15);
347 atexit (f16);
348 atexit (f17);
349 atexit (f18);
350 atexit (f19);
352 atexit (f20);
353 atexit (f21);
354 atexit (f22);
355 atexit (f23);
356 atexit (f24);
357 atexit (f25);
358 atexit (f26);
359 atexit (f27);
360 atexit (f28);
361 atexit (f29);
363 atexit (f30);
364 atexit (f31);
365 atexit (f32);
366 atexit (f33);
367 atexit (f34);
368 atexit (f35);
369 atexit (f36);
370 atexit (f37);
371 atexit (f38);
372 atexit (f39);
374 next = 39;