OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gdb-6.8/] [pre-binutils-2.20.1-sync/] [gdb/] [testsuite/] [gdb.hp/] [gdb.base-hp/] [sized-enum.c] - Diff between revs 157 and 223

Only display areas with differences | Details | Blame | View Log

Rev 157 Rev 223
 
 
enum Normal {
enum Normal {
  red,
  red,
  blue,
  blue,
  green
  green
};
};
 
 
short enum Small {
short enum Small {
  pink,
  pink,
  cyan,
  cyan,
  grey
  grey
};
};
 
 
char enum Tiny {
char enum Tiny {
  orange,
  orange,
  yellow,
  yellow,
  brown
  brown
};
};
 
 
 
 
main()
main()
{
{
  enum Normal normal[3];
  enum Normal normal[3];
  short enum Small small[3];
  short enum Small small[3];
  char enum Tiny tiny[3];
  char enum Tiny tiny[3];
  int i;
  int i;
 
 
  for (i=0; i < 3; i++)
  for (i=0; i < 3; i++)
    {
    {
      normal[i] = (enum Normal) i;
      normal[i] = (enum Normal) i;
      small[i] = (short enum Small) i;
      small[i] = (short enum Small) i;
      tiny[i] = (char enum Tiny) i;
      tiny[i] = (char enum Tiny) i;
    }
    }
  normal[0] = 0; /* place to hang a breakpoint */
  normal[0] = 0; /* place to hang a breakpoint */
}
}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

powered by: WebSVN 2.1.0

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