projects
/
external
/
binutils.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
gdb/doc/
[external/binutils.git]
/
gdb
/
testsuite
/
gdb.base
/
return.c
1
#include <stdio.h>
2
/* Test "return" command. */
3
4
void func1 ()
5
{
6
printf("in func1\n");
7
}
8
9
int
10
func2 ()
11
{
12
return -5;
13
}
14
15
double
16
func3 ()
17
{
18
return -5.0;
19
}
20
21
int tmp2;
22
double tmp3;
23
24
int main ()
25
{
26
func1 ();
27
printf("in main after func1\n");
28
tmp2 = func2 ();
29
tmp3 = func3 ();
30
printf("exiting\n");
31
return 0;
32
}