Import upstream sources.
[cparse] / tests / fail-array-subscripting-3.c
... / ...
CommitLineData
1/* array subscripts must be one pointer, one integer */
2
3struct foo {
4 int f;
5};
6
7int fn(struct foo x, int y) {
8 return x[y];
9}