aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/for_by.elna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/runnable/for_by.elna')
-rw-r--r--testsuite/runnable/for_by.elna9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/runnable/for_by.elna b/testsuite/runnable/for_by.elna
new file mode 100644
index 0000000..b219dc6
--- /dev/null
+++ b/testsuite/runnable/for_by.elna
@@ -0,0 +1,9 @@
+var
+ actual: [4]Word := [4]Word{}
+
+begin
+ for i := 1u to 4u by 2u do
+ actual[i] := i
+ end;
+ assert(actual = [4]Word{ 1u, 0u, 3u, 0u })
+end.