OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial revision
[pf3gnuchains/pf3gnuchains4x.git]
/
gdb
/
testsuite
/
gdb.base
/
ending-run.c
1
/* Test program for <next-at-end> and
2
* <leaves-core-file-on-quit> bugs.
3
*/
4
#include <stdio.h>
5
6
int callee( x )
7
int x;
8
{
9
int y = x * x;
10
return (y - 2);
11
}
12
13
main()
14
{
15
16
int *p;
17
int i;
18
19
p = (int *) malloc( 4 );
20
21
for (i = 1; i < 10; i++)
22
{
23
printf( "%d ", callee( i ));
24
25
}
26
printf( " Goodbye!\n" );
27
}