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] - Blame information for rev 107

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

Line No. Rev Author Line
1 106 markom
 
2
enum Normal {
3
  red,
4
  blue,
5
  green
6
};
7
 
8
short enum Small {
9
  pink,
10
  cyan,
11
  grey
12
};
13
 
14
char enum Tiny {
15
  orange,
16
  yellow,
17
  brown
18
};
19
 
20
 
21
main()
22
{
23
  enum Normal normal[3];
24
  short enum Small small[3];
25
  char enum Tiny tiny[3];
26
  int i;
27
 
28
  for (i=0; i < 3; i++)
29
    {
30
      normal[i] = (enum Normal) i;
31
      small[i] = (short enum Small) i;
32
      tiny[i] = (char enum Tiny) i;
33
    }
34
  normal[0] = 0; /* place to hang a breakpoint */
35
}
36
 
37
 
38
 
39
 
40
 
41
 
42
 
43
 

powered by: WebSVN 2.1.0

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