summaryrefslogtreecommitdiff
path: root/test/derefassign.myr
blob: 5a063359c9912099fbd9976457273076e43ad653 (plain)
1
2
3
4
5
6
7
8
9
10
use std
/* should assign to v through pointer p, exiting with 123 */
const main = {
	var p
	var v

	p = &v
	p# = 123
	std.exit(v)
}