shithub: mc

ref: 954b2fd7a8a0a65a077b61a5932ed54d3e3ef6a5
dir: /test/arrayaddr.myr/

View raw version
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#)
}