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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr50838.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
 
3
typedef void * gcv_object_t;
4
typedef gcv_object_t object;
5
typedef const void * Pseudofun;
6
extern struct pseudocode_tab_ {
7
    Pseudofun pseudo_eql;
8
    Pseudofun pseudo_iconv_wcslen;
9
    Pseudofun pseudo_iconv_wcstombs;
10
    Pseudofun pseudo_iconv_range;
11
}
12
pseudocode_tab;
13
extern struct symbol_tab_ {
14
    object pointer[1024];
15
} pseudofun_tab;
16
int
17
init_memory (void)
18
{
19
  object* ptr2 = &pseudofun_tab.pointer[0];
20
  const Pseudofun* ptr1 = (const Pseudofun*)&pseudocode_tab;
21
  unsigned int count = (sizeof(pseudocode_tab)/sizeof(Pseudofun));
22
  while (count--)
23
    {
24
      *ptr2++ = (gcv_object_t)(((unsigned char *)((*ptr1))));
25
      ptr1++;
26
    }
27
}

powered by: WebSVN 2.1.0

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