X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Ftestsuite%2Fbinutils-all%2Ftestprog.c;h=b8531e22674b62a44633eaabce08566e69dc5152;hb=7dd36a6f1ca92cd4ca4776064c604cda7755bc44;hp=210656b44877c2b7fa408a978ff25d78fd1622a5;hpb=5b64ad42d36e6d487e1f7287d37fbc243a178e72;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/testsuite/binutils-all/testprog.c b/binutils/testsuite/binutils-all/testprog.c index 210656b448..b8531e2267 100644 --- a/binutils/testsuite/binutils-all/testprog.c +++ b/binutils/testsuite/binutils-all/testprog.c @@ -1,18 +1,21 @@ -/* 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 @@ -20,9 +23,9 @@ main () || strcmp (string, "string") != 0) { printf ("failed\n"); - exit (1); + return 1; } printf ("ok\n"); - exit (0); + return 0; }