import gdb-1999-06-28 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / ending-run.c
index 56335cf1cd750955cc191edacdfb09c95e54a75a..09361460d7bdc0da9176eb824fdfaa71aca18c12 100644 (file)
@@ -2,15 +2,20 @@
  * <leaves-core-file-on-quit> bugs.
  */
 #include <stdio.h>
+#include <stdlib.h>
 
+#ifdef PROTOTYPES
+int callee (int x)
+#else
 int callee( x )
 int x;
+#endif
 {
     int y = x * x;
     return (y - 2);
 }
 
-main()
+int main()
 {
 
     int *p;
@@ -24,4 +29,5 @@ main()
             
         }
     printf( " Goodbye!\n" );
+    return 0;
 }
This page took 0.027498 seconds and 4 git commands to generate.