old-cross-binutils/binutils/testsuite/binutils-all/testprog.c

32 lines
414 B
C
Raw Normal View History

1999-05-03 07:29:11 +00:00
/* This program is used to test objcopy and strip. */
#include <stdio.h>
#include <string.h>
1999-05-03 07:29:11 +00:00
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");
return (1);
1999-05-03 07:29:11 +00:00
}
printf ("ok\n");
return (0);
1999-05-03 07:29:11 +00:00
}