fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / libgloss / mn10200 / test.c
blob992895880cfaa4011ee3f12440c0f7acc3eafdc4
1 #include <stdio.h>
2 #include <string.h>
4 static void
5 send_msg1 (void)
7 static char msg[] = "Hello World\r\n";
8 write(1, msg, strlen (msg));
11 static void
12 send_msg2 (void)
14 static char msg[] = "Goodnight Irene\r\n";
15 write(1, msg, strlen (msg));
18 static void
19 delay (void)
21 int i;
23 for (i = 0; i < 32000; i++)
27 int
28 main(int argc, char *argv[])
30 int i, j;
31 for (i = 0; i < 10; i++)
33 send_msg1 ();
34 delay ();
35 send_msg2 ();
37 return 0;