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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr38752.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
typedef struct
2
{
3
  int             baddr;
4
} mstruct_t;
5
 
6
static struct
7
{
8
  unsigned int    mapnum;
9
  mstruct_t       unused;
10
} mtab;
11
 
12
static mstruct_t *mactab = &mtab.unused;
13
 
14
int
15
main(void)
16
{
17
  int i;
18
  int addr;
19
 
20
  for (i=1; i <= mtab.mapnum; i++)
21
    if (addr < mactab[i].baddr)
22
      break;
23
  return 0;
24
}
25
 

powered by: WebSVN 2.1.0

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