summaryrefslogtreecommitdiff
path: root/tests/arrays/resize-local-size-captured.vala
blob: 6e23d71a04ba6af7199b3d40ea319ab695095e46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
delegate void FooFunc ();

void main () {
	int[] a = new int[10 * 1024 * 1024];

	FooFunc func = () => {
		a.resize (1);
	};
	func ();

	for (int i = 1; i < 10 * 1024 * 1024; i++) {
		a += 4711;
	}
}