summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/twice.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/twice.c')
-rw-r--r--gdb/testsuite/gdb.base/twice.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/twice.c b/gdb/testsuite/gdb.base/twice.c
index c50a2b362d7..09eb2ddf5a2 100644
--- a/gdb/testsuite/gdb.base/twice.c
+++ b/gdb/testsuite/gdb.base/twice.c
@@ -1,3 +1,4 @@
+#include <stdio.h>
int nothing ()
{
@@ -6,7 +7,7 @@ int nothing ()
}
-main ()
+int main ()
{
int y ;
@@ -16,4 +17,5 @@ main ()
#endif
y = nothing () ;
printf ("hello\n") ;
+ return 0;
}