1struct S {int a; int b;};2struct S arr[2] = {[1] = {3, 4}, [0] = {1, 2}};34int5main()6{7 if(arr[0].a != 1)8 return 1;9 if(arr[0].b != 2)10 return 2;11 if(arr[1].a != 3)12 return 3;13 if(arr[1].b != 4)14 return 4;15 return 0;16}
A fork of https://git.simple-cc.org/scc/ for Qute
git clone https://git.8pit.net/scc.git
1struct S {int a; int b;};2struct S arr[2] = {[1] = {3, 4}, [0] = {1, 2}};34int5main()6{7 if(arr[0].a != 1)8 return 1;9 if(arr[0].b != 2)10 return 2;11 if(arr[1].a != 3)12 return 3;13 if(arr[1].b != 4)14 return 4;15 return 0;16}