summary refs log tree commit diff stats
path: root/tests/misc/tcharinc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/tcharinc.nim')
-rw-r--r--tests/misc/tcharinc.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/misc/tcharinc.nim b/tests/misc/tcharinc.nim
new file mode 100644
index 000000000..1b5d19c18
--- /dev/null
+++ b/tests/misc/tcharinc.nim
@@ -0,0 +1,10 @@
+discard """
+  output: "1"
+"""
+
+var c = '\0'
+while true:
+  if c == '\xFF': break
+  inc c
+
+echo "1"