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