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] - Blame information for rev 222

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 khays
/* This program is used to test objcopy, readelf and strip.  */
2
 
3
extern int strcmp (char *, const char *);
4
extern int printf (const char *, ...);
5
 
6
int common;
7
int global = 1;
8
static int local = 2;
9
static char string[] = "string";
10
 
11
int
12
fn (void)
13
{
14
  return 3;
15
}
16
 
17
int
18
main (void)
19
{
20
  if (common != 0
21
      || global != 1
22
      || local != 2
23
      || strcmp (string, "string") != 0)
24
    {
25
      printf ("failed\n");
26
      return 1;
27
    }
28
 
29
  printf ("ok\n");
30
  return 0;
31
}

powered by: WebSVN 2.1.0

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