summaryrefslogtreecommitdiff
path: root/tests/methods/parameter-ref-array-resize.vala
blob: ffe27d35b5b29e06bd9a81b1867e05eb809a637f (plain)
1
2
3
4
5
6
7
8
9
10
11
void foo (ref int[] a) {
	a = new int[1];
}

void main() {
	int[] a = new int[10 * 1024 * 1024];
	foo (ref a);
	for (int i = 1; i < 10 * 1024 * 1024; i++) {
		a += 4711;
	}
}