Home | History | Annotate | Line # | Download | only in 060sp
dotest.c revision 1.2
      1 /*	$NetBSD: dotest.c,v 1.2 1998/01/09 08:03:54 perry Exp $	*/
      2 
      3 #include <stdio.h>
      4 
      5 void print_str(const char *s);
      6 void print_num(const int);
      7 void itest(void);
      8 void ftest1(void);
      9 void ftest2(void);
     10 void ftest3(void);
     11 
     12 void
     13 print_str(s)
     14 	const char *s;
     15 {
     16 	printf("%s", s);
     17 	fflush(stdout);
     18 }
     19 
     20 void
     21 print_num(i)
     22 	int i;
     23 {
     24 	printf("%d", i);
     25 	fflush(stdout);
     26 }
     27 
     28 int
     29 main()
     30 {
     31 	itest();
     32 	ftest1();
     33 	ftest2();
     34 #if 0
     35 	/*
     36 	 * We would need a special kernel, that clears the exception condition
     37 	 * and does RTE, to run this.
     38 	 */
     39 	ftest3();
     40 #endif
     41 	exit (0);
     42 }
     43