aboutsummaryrefslogtreecommitdiff
path: root/rcc-legacy/tests/performance/21_array.sy
blob: 5483b4de29078558129670f204c9b118eb2106f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
int test(int a[][4], int n) {
    return a[0][n];
}

int main() {
    int n;
    int a[1][1][4] = {0, 1, 2, 3};
    n = getint();
    int b[2][2] = {1, 2, 1, 2};
    return test(a[0], n) + b[1][0];
}