struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / qct / 0055-enum.c
blobc35a63d675fb97b03aac610d4b88e599b561074f
2 enum E {
3 x,
4 y,
5 z,
6 };
8 int
9 main()
11 enum E e;
13 if(x != 0)
14 return 1;
15 if(y != 1)
16 return 2;
17 if(z != 2)
18 return 3;
20 e = x;
21 return e;