summaryrefslogtreecommitdiff
path: root/test/basicfloat.myr
blob: aeb481d19e926d3bd85179f23bdfea8aebc8b9d4 (plain)
1
2
3
4
5
6
7
8
9
10
use std

const get42 = {
	-> 42.0
}

/* basic sanity check on floating point operations. should return 84. */
const main = {
	std.exit((42.0 + get42() : int))
}