PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr28952.c
blob1f424b93e62343cb058eb35901ac2a15a1c3c989
1 /* { dg-do compile } */
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. */
6 struct player_spaceship
8 _Bool structure[32];
9 };
10 struct player
12 struct player_spaceship spaceship;
14 struct packet_spaceship_info
16 char structure[32 + 1];
18 void lsend_packet_spaceship_info (struct packet_spaceship_info *);
19 void
20 send_spaceship_info (void)
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++)
28 info.structure[j] = ship->structure[j] ? '1' : '0';
30 lsend_packet_spaceship_info (&info);