-/* This program is used to test objcopy and strip. */
+/* This program is used to test objcopy, readelf and strip. */
+
+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
|| strcmp (string, "string") != 0)
{
printf ("failed\n");
- exit (1);
+ return 1;
}
printf ("ok\n");
- exit (0);
+ return 0;
}