summaryrefslogtreecommitdiff
path: root/test/arrayaddr.myr
blob: ca9e1d068f03e88fc2f78b192116ea6460820b86 (plain)
1
2
3
4
5
6
7
8
9
10
11
use std
/* tests taking the address of array elements. should exit with 42. */
const main = {
	var v : int[3]
	var p

	v[1] = 42
	p = &v[1]
	std.exit(p#)
}