mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
c9bc3b3d29
order to avoid compile time warnings.
32 lines
469 B
C
32 lines
469 B
C
/* This program is used to test objcopy, readelf and strip. */
|
|
|
|
extern int strcmp (char *, const char *);
|
|
extern int printf (const char *, ...);
|
|
|
|
int common;
|
|
int global = 1;
|
|
static int local = 2;
|
|
static char string[] = "string";
|
|
|
|
int
|
|
fn (void)
|
|
{
|
|
return 3;
|
|
}
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
if (common != 0
|
|
|| global != 1
|
|
|| local != 2
|
|
|| strcmp (string, "string") != 0)
|
|
{
|
|
printf ("failed\n");
|
|
return 1;
|
|
}
|
|
|
|
printf ("ok\n");
|
|
return 0;
|
|
}
|