URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr50838.c] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ typedef void * gcv_object_t; typedef gcv_object_t object; typedef const void * Pseudofun; extern struct pseudocode_tab_ { Pseudofun pseudo_eql; Pseudofun pseudo_iconv_wcslen; Pseudofun pseudo_iconv_wcstombs; Pseudofun pseudo_iconv_range; } pseudocode_tab; extern struct symbol_tab_ { object pointer[1024]; } pseudofun_tab; int init_memory (void) { object* ptr2 = &pseudofun_tab.pointer[0]; const Pseudofun* ptr1 = (const Pseudofun*)&pseudocode_tab; unsigned int count = (sizeof(pseudocode_tab)/sizeof(Pseudofun)); while (count--) { *ptr2++ = (gcv_object_t)(((unsigned char *)((*ptr1)))); ptr1++; } }
Go to most recent revision | Compare with Previous | Blame | View Log