mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
29 lines
370 B
C
29 lines
370 B
C
/* This program is used to test objcopy and strip. */
|
|
|
|
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);
|
|
}
|