OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.hp/] [gdb.base-hp/] [sized-enum.c] - Rev 841

Go to most recent revision | Compare with Previous | Blame | View Log

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

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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