URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.hp/] [gdb.base-hp/] [sized-enum.c] - Rev 157
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 */ }