summaryrefslogtreecommitdiff
path: root/test/str.myr
blob: bcb8effa2c1425f3a7354fa9438bb60a6992a008 (plain)
1
2
3
4
5
6
7
8
9
use std
/* checks that string literals are compiled correctly.
exits with ascii 'f', ie, 102. */
const main = {
	var str

	str = "asdf"
	std.exit(str[3] castto(int))
}