blob: cb7983d2fe1451197a44741aea35e6a96e8a4aa0 (
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
34
35
36
37
38
39
40
41
42
43
|
/* $OpenBSD: dotest.c,v 1.2 2001/01/29 02:05:53 niklas Exp $ */
/* $NetBSD: dotest.c,v 1.2 1998/01/09 08:03:54 perry Exp $ */
#include <stdio.h>
void print_str(const char *s);
void print_num(const int);
void itest(void);
void ftest1(void);
void ftest2(void);
void ftest3(void);
void
print_str(s)
const char *s;
{
printf("%s", s);
fflush(stdout);
}
void
print_num(i)
int i;
{
printf("%d", i);
fflush(stdout);
}
int
main()
{
itest();
ftest1();
ftest2();
#if 0
/*
* We would need a special kernel, that clears the exception condition
* and does RTE, to run this.
*/
ftest3();
#endif
exit (0);
}
|