Fix regression in default.exp caused by _caller_is, etc.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / ending-run.c
CommitLineData
c906108c
SS
1/* Test program for <next-at-end> and
2 * <leaves-core-file-on-quit> bugs.
3 */
4#include <stdio.h>
085dd6e6 5#include <stdlib.h>
c906108c 6
085dd6e6
JM
7#ifdef PROTOTYPES
8int callee (int x)
9#else
c906108c
SS
10int callee( x )
11int x;
085dd6e6 12#endif
c906108c
SS
13{
14 int y = x * x;
15 return (y - 2);
16}
17
085dd6e6 18int main()
c906108c
SS
19{
20
21 int *p;
22 int i;
23
24 p = (int *) malloc( 4 );
808a31f5 25
c906108c
SS
26 for (i = 1; i < 10; i++)
27 {
28 printf( "%d ", callee( i ));
808a31f5 29 fflush (stdout);
c906108c 30 }
808a31f5 31 printf( " Goodbye!\n" ); fflush (stdout);
085dd6e6 32 return 0;
c906108c 33}
This page took 1.584295 seconds and 4 git commands to generate.