1/* { dg-do compile } */ 2 3/* We were ICE because we wanted to check the type of the 4 elements of a conditional before we knew it was a conditional. */ 5 6struct player_spaceship 7{ 8 _Bool structure[32]; 9}; 10struct player 11{ 12 struct player_spaceship spaceship; 13}; 14struct packet_spaceship_info 15{ 16 char structure[32 + 1]; 17}; 18void lsend_packet_spaceship_info (struct packet_spaceship_info *); 19void 20send_spaceship_info (void) 21{ 22 int j; 23 struct player *pplayer; 24 struct packet_spaceship_info info; 25 struct player_spaceship *ship = &pplayer->spaceship; 26 for (j = 0; j < 32; j++) 27 { 28 info.structure[j] = ship->structure[j] ? '1' : '0'; 29 } 30 lsend_packet_spaceship_info (&info); 31} 32 33/* { dg-final { cleanup-tree-dump "vect" } } */ 34