aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/parseword_noread.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/langerrors/parseword_noread.zc')
-rw-r--r--tests/langerrors/parseword_noread.zc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/langerrors/parseword_noread.zc b/tests/langerrors/parseword_noread.zc
new file mode 100644
index 0000000..e7c5b1a
--- /dev/null
+++ b/tests/langerrors/parseword_noread.zc
@@ -0,0 +1,5 @@
+// expect: a parse word has to read its own name
+// a parse word that never calls next() would be called on the same token forever
+immediate fn pw() { return 0; }
+pw
+fn main() { return 0; }