aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/7-compile-time/parse_word_reads_nothing.zc
blob: e0f7cc13ab09185249f74a88a0884fde58faf9ce (plain) (blame)
1
2
3
4
5
6
7
8
// expect error: a parse word has to read its own name with next()
// spec 7.2
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
include run;
immediate fn bad() { run.lit(5); return 0; }
fn main() { int x = bad; return 0; }
// zc0: skip