URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [zerolen-1.c] - Rev 307
Go to most recent revision | Compare with Previous | Blame | View Log
extern void abort (void); extern void exit (int); union iso_directory_record { char carr[4]; struct { unsigned char name_len [1]; char name [0]; } u; } entry; void set(union iso_directory_record *); int main (void) { union iso_directory_record *de; de = &entry; set(de); if (de->u.name_len[0] == 1 && de->u.name[0] == 0) exit (0); else abort (); } void set (union iso_directory_record *p) { p->carr[0] = 1; p->carr[1] = 0; return; }
Go to most recent revision | Compare with Previous | Blame | View Log