]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.mi/mi-console.c
gdb/testsuite: Explicitly return from main
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-console.c
1 #include <unistd.h>
2
3 void
4 hello ()
5 {
6 char *hello = "Hello \\\"!\r\n";
7 int i;
8 for (i = 0; hello[i]; i++)
9 write (1, hello + i, 1);
10 }
11
12 int
13 main ()
14 {
15 hello ();
16
17 return 0; /* after-hello */
18 }