aboutsummaryrefslogtreecommitdiff
path: root/tests/sysy_lvX/038_block_arr.sy
blob: d4f8339d14b70ed7451da9eaa9c57d707f0f1236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
int main()
{
    int a;
    a = 1;
    int b = 2;
    {
        int a[4][5];
        int c;
        c = 3;
        a[c][1] = 6;
        {
            int a = 7;
            b = a;
        }
        c = a[c][1];
    }
    int c = 8;
    return b;
}