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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [testsuite/] [gdb.hp/] [gdb.base-hp/] [sized-enum.c] - Rev 1765

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 */ 
}
 
 
 
 
 
 
 
 
 

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.