modernc.org/ccgo/v3@v3.16.14/lib/testdata/bug/paramarray2.c (about) 1 void f(int p[]) { 2 int *q = &p[2]; 3 __builtin_printf("%i\n", *q); 4 } 5 6 struct s { 7 int x, y; 8 }; 9 10 void g(struct s p[]) { 11 int *q = &p[1].y; 12 __builtin_printf("%i\n", *q); 13 } 14 15 void h(struct s p[]) { 16 int *q = &p->y; 17 __builtin_printf("%i\n", *q); 18 } 19 20 int main() { 21 int a[] = {1, 2, 42, 3, 4}; 22 f(a); 23 struct s b[] = {{1, 2}, {3, 4}, {5, 6}}; 24 g(b); 25 h(b); 26 }