This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/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 }
This page took 0.031337 seconds and 5 git commands to generate.