Vexu / arocc

A C compiler written in Zig.
http://aro.vexu.eu/
MIT License
1.15k stars 56 forks source link

Support GNU array range designator for init lists #785

Open ehaas opened 1 month ago

ehaas commented 1 month ago

The following initializes elements 0-4 (inclusive) to 42:

int x[5] = {[0 ... 4] = 42};