fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libgloss / hp74x / test.c
blob2fd84ac113ae86f3c385a5eebadbdf907761637d
1 extern int led_putnum();
2 #define DELAY 900000
3 extern char strobe(),putDebugChar(),print(),putnum();
4 extern char foobar();
5 extern char breakpoint();
7 #define TESTSTUB 1
9 main()
11 unsigned char x;
12 char buf[20];
14 #if TESTIO
15 strobe();
16 outbyte ('\n');
17 outbyte ('$');
18 write (2, "Enter 5 characters... ", 24);
19 read (0, buf, 5);
20 print (buf);
21 print ("\r\n");
22 strobe ();
23 #endif
25 #if TESTSTUB
26 print ("\r\nInit vectors...\r\n");
27 /*** set_debug_traps(); ***/
28 print ("\r\nSet a breakpoint...\r\n");
29 handle_exception();
30 /*** breakpoint(); ***/
31 #endif
33 print ("\r\nTest foobar\r\n");
34 foobar();
35 /* whew, we made it */
36 print ("\r\nDone...");
40 * FIXME: this is only hear so things will link.
41 */
42 int
43 puts(s)
44 char *s;
46 s++;