File: test23.ci

package info (click to toggle)
clif 0.93-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 3,616 kB
  • ctags: 2,881
  • sloc: ansic: 31,464; yacc: 5,067; lex: 819; makefile: 389; sh: 48
file content (25 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (7)
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
enum {b, c, d} a;

printf ("%d %d %d\n", b, c, d);

struct x {
  int a;
  enum {x, y, z} b;
  float c;
};

struct x xa;

xa.b = y;
printf ("%d\n", xa.b);

enum a1 { x1, y1, z1 };

enum a1 c1, b1;

b1 = x1;
c1 = z1;

printf ("b1=%d c1=%d\n", b1, c1);

exit;