summaryrefslogtreecommitdiff
path: root/tests/asynchronous/captured-fixed-array.vala
blob: 30a9c38be9f13082d72cf049107f506b1c9cae34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
async void foo (int array_param[3]) {
    int array[] = { 23, 42 };

    assert (array.length == 2);
    assert (array[1] == 42);

    assert (array_param.length == 3);
    assert (array_param[2] == 4711);
}

void main() {
	int array[3] = { 42, 23, 4711 };
	foo.begin (array);
}