aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/7-compile-time/parse_word_five.zc
blob: b4da5d9dd60adc8055c28076647b13c0da38138a (plain) (blame)
1
2
3
4
5
6
7
8
// expect: 6/
// spec 7.2
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
include run;
immediate fn five() { run.next(); run.lit(5); return 0; }
fn main() { int x = five + 1; pn(x); return 0; }
// zc0: skip