fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libgloss / iq2000 / test.c
blob9ea873adff3fced63d6e27be84d64c7e96c3e0f8
1 #include <stdio.h>
3 static void
4 send_msg1 (void)
6 static char msg[] = "Hello World\r\n";
7 write(1, msg, strlen (msg));
10 static void
11 send_msg2 (void)
13 static char msg[] = "Goodnight Irene\r\n";
14 write(1, msg, strlen (msg));
17 static void
18 delay (void)
20 int i;
22 for (i = 0; i < 1000000; i++)
26 int
27 main(int argc, char *argv[])
29 int i, j;
30 for (i = 0; i < 10; i++)
32 send_msg1 ();
33 delay ();
34 send_msg2 ();
36 return 0;