old-cross-binutils/binutils/testsuite/binutils-all/testprog.c
Ian Lance Taylor 0691c3ca1f 1999-07-21 H.J. Lu <hjl@gnu.org>
* binutils-all/testprog.c: Include <stdio.h>.
1999-07-22 00:20:30 +00:00

30 lines
390 B
C

/* This program is used to test objcopy and strip. */
#include <stdio.h>
int common;
int global = 1;
static int local = 2;
static char string[] = "string";
int
fn ()
{
return 3;
}
int
main ()
{
if (common != 0
|| global != 1
|| local != 2
|| strcmp (string, "string") != 0)
{
printf ("failed\n");
exit (1);
}
printf ("ok\n");
exit (0);
}