aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-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.