summaryrefslogtreecommitdiff
path: root/test/gsizeof.myr
blob: db04015211c125a4e931070bd094a5bd02135602 (plain)
1
2
3
4
5
6
7
8
9
use std
/* checks that sizeof works on generics. exits with 5. */
generic sz = {a:@a
	-> sizeof(@a)
}

const main = {
	std.exit(sz(123) + sz("asdf"[0]))
}