Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.base / ending-run.c
blob8c67706fbe9fd1d7fbee7936d491b9222ee02b50
1 /* Test program for <next-at-end> and
2 * <leaves-core-file-on-quit> bugs.
3 */
4 #include <stdio.h>
5 #include <stdlib.h>
7 #ifdef PROTOTYPES
8 int callee (int x)
9 #else
10 int callee( x )
11 int x;
12 #endif
14 int y = x * x;
15 return (y - 2);
18 int main()
21 int *p;
22 int i;
24 p = (int *) malloc( 4 );
26 for (i = 1; i < 10; i++)
28 printf( "%d ", callee( i ));
29 fflush (stdout);
31 printf( " Goodbye!\n" ); fflush (stdout);
32 return 0;