import gdb-1999-06-28 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / return.c
CommitLineData
c906108c
SS
1#include <stdio.h>
2/* Test "return" command. */
3
085dd6e6 4void func1 ()
c906108c
SS
5{
6 printf("in func1\n");
7}
8
9int
10func2 ()
11{
12 return -5;
13}
14
15double
16func3 ()
17{
18 return -5.0;
19}
20
21int tmp2;
22double tmp3;
23
085dd6e6 24int main ()
c906108c
SS
25{
26#ifdef usestubs
27 set_debug_traps();
28 breakpoint();
29#endif
30 func1 ();
31 printf("in main after func1\n");
32 tmp2 = func2 ();
33 tmp3 = func3 ();
34 printf("exiting\n");
085dd6e6 35 return 0;
c906108c 36}
This page took 0.030732 seconds and 4 git commands to generate.