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