PR gdb/8704
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / return.c
index 73eee61b7ccf4075cc45accbe6588acf0633ec9e..d11a4b57e09f1e448214c85581471165da7f6bb3 100644 (file)
@@ -1,6 +1,7 @@
+#include <stdio.h>
 /*  Test "return" command.  */
 
-func1 ()
+void func1 ()
 {
   printf("in func1\n");
 }
@@ -17,10 +18,19 @@ func3 ()
   return -5.0;
 }
 
-main ()
+int tmp2;
+double tmp3;
+
+int main ()
 {
+#ifdef usestubs
+  set_debug_traps();
+  breakpoint();
+#endif
   func1 ();
   printf("in main after func1\n");
-  printf("func2 = %d\n", func2 ());
-  printf("func3 = %f\n", func3 ());
+  tmp2 = func2 ();
+  tmp3 = func3 ();
+  printf("exiting\n");
+  return 0;
 }
This page took 0.051152 seconds and 4 git commands to generate.