aboutsummaryrefslogtreecommitdiff
path: root/testsuite/compilable
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-07-21 01:55:56 +0200
committerEugen Wissner <belka@caraus.de>2026-07-21 01:55:56 +0200
commit44d6e8a27294e5ca7300ab11900011b73d9336d4 (patch)
treed21addb0dec93fa8fa376bbd11076b17f3412173 /testsuite/compilable
parent6b131c925dee7a5f97516edd581e051e08bb52d8 (diff)
downloadelna-44d6e8a27294e5ca7300ab11900011b73d9336d4.tar.gz
Implement slices
Diffstat (limited to 'testsuite/compilable')
-rw-r--r--testsuite/compilable/slice_index.elna11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/compilable/slice_index.elna b/testsuite/compilable/slice_index.elna
new file mode 100644
index 0000000..70d26ae
--- /dev/null
+++ b/testsuite/compilable/slice_index.elna
@@ -0,0 +1,11 @@
+proc f()
+var
+ a: []Int
+ x: Int
+ p: ^Int
+begin
+ x := a[1];
+ a := p[1u to 10u]
+return
+
+end.