extract enum constants as their integer values
[pet.git] / tests / enum.c
blobe7b503ca179682d48426811eefa112aa37752871
1 enum type {
2 type_a = 0,
3 type_b,
4 type_c,
5 type_last
6 };
8 void foo()
10 int a[type_last];
12 #pragma scop
13 a[type_b] = 5;
14 #pragma endscop