OpenCores
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.dg/] [vect/] [pr28952.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { 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
 
6
struct player_spaceship
7
{
8
  _Bool structure[32];
9
};
10
struct player
11
{
12
  struct player_spaceship spaceship;
13
};
14
struct packet_spaceship_info
15
{
16
  char structure[32 + 1];
17
};
18
send_spaceship_info (void)
19
{
20
  int j;
21
  struct player *pplayer;
22
  struct packet_spaceship_info info;
23
  struct player_spaceship *ship = &pplayer->spaceship;
24
  for (j = 0; j < 32; j++)
25
  {
26
    info.structure[j] = ship->structure[j] ? '1' : '0';
27
  }
28
  lsend_packet_spaceship_info (&info);
29
}
30
 
31
/* { dg-final { cleanup-tree-dump "vect" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.