old-cross-binutils/binutils/testsuite/binutils-all/testprog.c
H.J. Lu 9a580d9af6 2001-02-11 H.J. Lu <hjl@gnu.org>
* config/default.exp: Set up gcc_gas_flag.

	* binutils-all/objcopy.exp (copy_setup): Process gcc_gas_flag
	for Linux only.

	* binutils-all/testprog.c: Include <string.h> and don't use
	exit ().
2001-02-12 00:21:59 +00:00

31 lines
414 B
C

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