URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 818 |
/* This program is used to test objcopy, readelf and strip. */
|
/* This program is used to test objcopy, readelf and strip. */
|
|
|
extern int strcmp (char *, const char *);
|
extern int strcmp (char *, const char *);
|
extern int printf (const char *, ...);
|
extern int printf (const char *, ...);
|
|
|
int common;
|
int common;
|
int global = 1;
|
int global = 1;
|
static int local = 2;
|
static int local = 2;
|
static char string[] = "string";
|
static char string[] = "string";
|
|
|
int
|
int
|
fn (void)
|
fn (void)
|
{
|
{
|
return 3;
|
return 3;
|
}
|
}
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
if (common != 0
|
if (common != 0
|
|| global != 1
|
|| global != 1
|
|| local != 2
|
|| local != 2
|
|| strcmp (string, "string") != 0)
|
|| strcmp (string, "string") != 0)
|
{
|
{
|
printf ("failed\n");
|
printf ("failed\n");
|
return 1;
|
return 1;
|
}
|
}
|
|
|
printf ("ok\n");
|
printf ("ok\n");
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.