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

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