AArch64: Fix disassembler bug with out-of-order sections
[deliverable/binutils-gdb.git] / binutils / testsuite / binutils-all / testprog.c
index c2b1856dedd038152490081bfadc129d44c0a054..b8531e22674b62a44633eaabce08566e69dc5152 100644 (file)
@@ -1,20 +1,21 @@
-/* This program is used to test objcopy and strip.  */
+/* This program is used to test objcopy, readelf and strip.  */
 
-#include <stdio.h>
+extern int strcmp (const char *, const char *);
+extern int printf (const char *, ...);
 
 int common;
 int global = 1;
 static int local = 2;
-static char string[] = "string";
+static const char string[] = "string";
 
 int
-fn ()
+fn (void)
 {
   return 3;
 }
 
 int
-main ()
+main (void)
 {
   if (common != 0
       || global != 1
@@ -22,9 +23,9 @@ main ()
       || strcmp (string, "string") != 0)
     {
       printf ("failed\n");
-      exit (1);
+      return 1;
     }
 
   printf ("ok\n");
-  exit (0);
+  return 0;
 }
This page took 0.023507 seconds and 4 git commands to generate.