ChangeLog:
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / recurse.c
index 1d6892d0f6943b4803e6ade5e77a0db1e812b5b3..798177888c9b90f143d1175e70abc011d2a6e783 100644 (file)
@@ -1,9 +1,14 @@
 /* Trivial code used to test watchpoints in recursive code and 
    auto-deletion of watchpoints as they go out of scope.  */
 
+#ifdef PROTOTYPES
+static int
+recurse (int a)
+#else
 static int 
 recurse (a)
      int a;
+#endif
 {
   int b = 0;
 
@@ -15,11 +20,12 @@ recurse (a)
   return b;
 }
 
-main()
+int main()
 {
 #ifdef usestubs
   set_debug_traps();
   breakpoint();
 #endif
   recurse (10);
+  return 0;
 }
This page took 0.030547 seconds and 4 git commands to generate.