shithub: mc

ref: 4da95e96e01dac40ff290b1e2cb4e9f641aea398
dir: /test/ptrcmp.myr/

View raw version
use std

const main = {
	var a, b, v1, v2

	v1 = 42
	v2 = 42
	a = &v1
	b = &v1
	std.assert(a == b, "pointers should be equal, but weren't\n")
	a = &v1
	b = &v2
	std.assert(a != b, "pointers weren't equal, but should be\n")
	std.exit(0)
}