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