Open simonlindholm opened 2 years ago
struct A { int x; }; struct A a = { .x = 1 };
and
enum { x }; int a[] = { [x] = 1 };
both result in a Decl with
init=InitList(exprs=[NamedInitializer(name=[ID(name='x')], expr=Constant(type='int', value='1'))]),
(The serializer choses to emit .x = 1 in this case.)
.x = 1
and
both result in a Decl with
(The serializer choses to emit
.x = 1
in this case.)