Fixes compile failure if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES defined
[newlib-cygwin.git] / libgloss / mn10300 / test.c
bloba61dbb797a3796f88b35d40fafc0cc5309418eff
1 #include <stdio.h>
2 #include <unistd.h>
3 #include <string.h>
5 static void
6 send_msg1 (void)
8 static char msg[] = "Hello World\r\n";
9 write(1, msg, strlen (msg));
12 static void
13 send_msg2 (void)
15 static char msg[] = "Goodnight Irene\r\n";
16 write(1, msg, strlen (msg));
19 static void
20 delay (void)
22 int i;
24 for (i = 0; i < 1000000; i++)
28 int
29 main(int argc, char *argv[])
31 int i, j;
32 for (i = 0; i < 10; i++)
34 send_msg1 ();
35 delay ();
36 send_msg2 ();
38 return 0;