summaryrefslogtreecommitdiff
path: root/test/ptrpreinc.myr
blob: fef77156835df01d08f32dd21737e2ca6cadce04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use std
/* should preincrement through a pointer, exiting with status 9 */
const ppreinc = {p
	-> ++p#
}

const main = {
	var x = 8

	std.exit(ppreinc(&x))
}