File: enum.c

package info (click to toggle)
cc1111 2.9.0-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 38,692 kB
  • ctags: 132,262
  • sloc: ansic: 442,650; cpp: 37,006; sh: 10,334; makefile: 5,511; asm: 5,279; yacc: 2,953; lisp: 1,524; perl: 807; awk: 493; python: 468; lex: 447
file content (89 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

#ifdef TEST1
enum tag
{
  first,
  second,
  third
};
#endif

#ifdef TEST2
enum tag
{
  first,	/* IGNORE */
  second,
  third,
  first,	/* ERROR */
  fourth
};
#endif


#ifdef TEST3
enum
{
  first,	/* IGNORE */
  second,
  third,
  first,	/* ERROR */
  fourth
};
#endif


#ifdef TEST4
enum
{
  first=1,
  second,
  third,
};
#endif


#ifdef TEST5
enum
{
  first=1.1,	/* ERROR */
  second,
  third,
};
#endif

#ifdef TEST6
int second;	/* IGNORE */

enum tag
{
  first,
  second,	/* ERROR */
  third
};
#endif

#ifdef TEST7
enum tag	/* IGNORE */
{
  first,
  second,
  third
};

enum tag {	/* ERROR */
  fourth,
  fifth,
  sixth
};
#endif

#ifdef TEST8
enum tag x;

enum tag
{
  first,
  second,
  third
};
#endif