OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [binutils/] [testsuite/] [binutils-all/] [testprog.c] - Rev 15

Compare with Previous | Blame | View Log

/* 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;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.