projects
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* lib/gdb.exp (gdb_test): Between $pattern and $prompt, expect
[binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.base
/
return.c
1
/* Test "return" command. */
2
3
func1
()
4
{
5
printf
(
"in func1
\n
"
);
6
}
7
8
int
9
func2
()
10
{
11
return
-
5
;
12
}
13
14
double
15
func3
()
16
{
17
return
-
5.0
;
18
}
19
20
main
()
21
{
22
func1
();
23
printf
(
"in main after func1
\n
"
);
24
printf
(
"func2 = %d
\n
"
,
func2
());
25
printf
(
"func3 = %f
\n
"
,
func3
());
26
}