1 /* { 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 init_memory(void)17init_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 } 28